You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E AssertionError: out=-0.0, should be 0.0 [__getitem__()]
E Falsifying example: test_getitem(
E shape=(1,), dtype=numpy.float32, data=data(...),
E )
E Draw 1 (obj): [-0.0]
E x=array([-0.], dtype=float32)
E Draw 2 (key): (0,)
It seems like it is saying that asarray([-0.0])[0,] should be 0.0 instead of -0.0. CuPy appears to be correct:
>>> import cupy as cp
>>> cp.array([-0.0], dtype=cp.float32)[0,]
array(-0., dtype=float32)
It's possible I'm misinterpreting the test. The output of the tests when there are data().draw()s isn't always very readable.
The text was updated successfully, but these errors were encountered:
cupy fails test_getitem with:
It seems like it is saying that
asarray([-0.0])[0,]
should be 0.0 instead of -0.0. CuPy appears to be correct:It's possible I'm misinterpreting the test. The output of the tests when there are
data().draw()
s isn't always very readable.The text was updated successfully, but these errors were encountered: