We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not only is it in conflict with numpy it also contradicts what numba does with signed integers. Please see the example below:
numpy
numba
import numpy as np import numba print("numpy version:", np.__version__) # 1.26.4 print("numba version:", numba.__version__) # 0.59.1 def do_cumprod(): return np.array([20, 20], dtype=np.int8).cumprod(), np.array([20, 20], dtype=np.uint8).cumprod() do_cumprod_jit = numba.njit(do_cumprod) # numpy: upcasting print("numpy:", do_cumprod()) # (array([ 20, 400]), array([ 20, 400], dtype=uint64)) # numba: upcasting for int8, no upcasting and overflow with uint8 print("numba:", do_cumprod_jit()) # (array([ 20, 400]), array([ 20, 144], dtype=uint8))
This behavior was first introduced with 0.57.
0.57
numpy version: 1.22.4 numba version: 0.56.4 numpy: (array([ 20, 400]), array([ 20, 400], dtype=uint64)) numba: (array([ 20, 400]), array([ 20, 400], dtype=uint64))
numpy version: 1.22.4 numba version: 0.57.0 numpy: (array([ 20, 400]), array([ 20, 400], dtype=uint64)) numba: (array([ 20, 400]), array([ 20, 144], dtype=uint8))
Thanks!
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Reporting a bug
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
i.e. it's possible to run as 'python bug.py'.
Not only is it in conflict with
numpy
it also contradicts whatnumba
does with signed integers.Please see the example below:
This behavior was first introduced with
0.57
.Thanks!
The text was updated successfully, but these errors were encountered: