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
NumbaIRAssumptionWarning: variable 'a.1.1' is not in scope. #7623
Comments
on
With 0.54.1:
@mhostetter thank you reporting this. As far as I can tell, this warning is no longer raised on |
Yes, I can confirm current numpy version: 1.20.3
numba version: 0.55.0dev0+877.g4469f04e0
Test Case 1: Default
[ 0 6 4 10 8 14]
Test Case 2: Lambda same names
[ 0 6 4 10 8 14]
Test Case 3: Lambda different names
[ 0 6 4 10 8 14] I have a workaround for my library (changing the variable names in the lambda), but thought I'd raise it here. I wasn't sure if there should be warnings for any case, none, or all? |
OK, thank you. I assume that there should never have been a warning and that this was probably fixed during the latest (0.55) development cycle. I will close this issue now. It should be fixed with the upcoming 0.55 (soon). Thank you again for reporting this, your help to improve Numba is appreciated. |
I encountered this warning (bug?) with Numba 0.54.0 and 0.54.1 in my Python package mhostetter/galois#178. A minimal reproducer is included below.
I'm not sure why the "pedantic check" is complaining, but it seems related to the lambda function and the fact the lambda arguments
a
andb
are the same as the JIT function arguments. When the lamba arguments are renamed toaa
andbb
, the warnings go away.Minimal Example
Numba 0.53.1 Output
Numba 0.54.1 Output
The text was updated successfully, but these errors were encountered: