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
Strange NumbaPerformanceWarning for numpy @ operator. #4585
Comments
Thanks for reporting this issue. This is interesting because it reveals that The corresponding IR for the
|
The problem seems to be here, where the contiguity check doesn't take into account possible trailing full slices. I was planning to fix this edge case, but then I realized that if I replace my trailing colons with an ellipsis it suddenly starts working just fine, and that's more idiomatic code anyway. Are there any possible scenarios where this leads to a false negative for the contiguity check and one can't use an ellipsis instead? I suspect not. |
If you do |
@GCru slicing Edit: aaah, I missed that the slices are 1 length! OK, that's a really weird edge case :) |
I am using the
Numba-0.45.1
withpython-3.7.3
Run the python program above,
X[:, :] @ B[:, :]
will raiseNumbaPerformanceWarning
, whileX @ B
raise nothing. The behavior is very strange.The text was updated successfully, but these errors were encountered: