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
Cannot use 1d array containing a single value as a predicate. #4923
Comments
Thanks for the report. Please could you provide more information about what caused this problem:
Thanks. |
@vivekvekariya Are you using Python 3.8? If so, this might be related to #4712. |
@bittremieux No I am using Python 3.7.4 |
Gitter discussion: https://gitter.im/numba/numba?at=5de6abae46397c721c7e5f17 This is a reproducer: import numpy as np
from numba import njit
def foo():
x = np.ones(1)
if x:
pass
njit(foo)() it's the bug fixed by this: #3901 (or related to, may need |
Fixed by #5225, closing. |
Cannot cast array(float64, 1d, C) to bool: %".155" = load {i8*, i8*, i64, i64, double*, [1 x i64], [1 x i64]}, {i8*, i8*, i64, i64, double*, [1 x i64], [1 x i64]}* %"large"
The text was updated successfully, but these errors were encountered: