Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

def incremental_component_reconstruction -> numba LoweringError: Operands must be the same type, got (i64, i32) #9

Open
rafidou opened this issue Jul 1, 2019 · 3 comments

Comments

@rafidou
Copy link

rafidou commented Jul 1, 2019

I haven't found a workaround to make the incremental_component_reconstruction method work (in optimized package) with numba the issue and because of it it's quite slow to execute...

Has anyone encountered and found a solution for this issue: numba "LoweringError: Operands must be the same type, got (i64, i32)" which appears when initializing the "components" array "components = np.zeros((P, N, rank))" ?

@vanamalivanam
Copy link

Found the same issue on Windows with python 3.6.7 and numba==0.43.0 and numba==0.44.0.
This issue doesnt happen in linux (ubuntu 16.04 ) and python 3.6.7.

@RogerPallares
Copy link

I found the same issue on Windows 10 with python 3.7.3 and numba 0.45.1

@RogerPallares
Copy link

This problem is from numba, not pymssa library. In fact, I managed to solve the error with these 2 steps:

  1. Find and open the optimized.py source code.
  2. Once opened, go to line 226: components = np.zeros((P, N, rank)). You must force the P, N and rank variables to be int64. Hence, you can modify this line of code as follows: components = np.zeros((np.int64(P), np.int64(N), np.int64(rank))).

This modification worked for me. No more errors obtained. Hope you can also solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants