• Brendan Murphy's avatar
    Fixed failed test due to uint8 overflow · 24efd1b1
    Brendan Murphy 提交于
    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`
    24efd1b1
名称
最后提交
最后更新
..
compile 正在载入提交数据...
d3viz 正在载入提交数据...
graph 正在载入提交数据...
link 正在载入提交数据...
misc 正在载入提交数据...
scalar 正在载入提交数据...
scan 正在载入提交数据...
sparse 正在载入提交数据...
tensor 正在载入提交数据...
typed_list 正在载入提交数据...
__init__.py 正在载入提交数据...
test_breakpoint.py 正在载入提交数据...
test_config.py 正在载入提交数据...
test_gradient.py 正在载入提交数据...
test_ifelse.py 正在载入提交数据...
test_printing.py 正在载入提交数据...
test_raise_op.py 正在载入提交数据...
test_rop.py 正在载入提交数据...
test_updates.py 正在载入提交数据...
unittest_tools.py 正在载入提交数据...