Fixed failed test due to uint8 overflow
In numpy 2.0, -1 as uint8 is out of bounds, whereas
previously it would be converted to 255.
This affected the test helper function `reduced_bitwise_and`.
The helper function was changed to use 255 instead of -1 if
the dtype was uint8, since this is what is needed to match the
behavior of the "bitwise and" op.
`reduced_bitwise_and` was only used by `TestCAReduce`
in `tests/tensor/test_elemwise.py`, so it was moved
there from `tests/tensor/test_math.py`
正在显示
请
注册
或者
登录
后发表评论