• 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
名称
最后提交
最后更新
.github 正在载入提交数据...
doc 正在载入提交数据...
pytensor 正在载入提交数据...
scripts 正在载入提交数据...
tests 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.pre-commit-config.yaml 正在载入提交数据...
.readthedocs.yaml 正在载入提交数据...
CODE_OF_CONDUCT.md 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
GOVERNANCE.md 正在载入提交数据...
LICENSE.txt 正在载入提交数据...
MANIFEST.in 正在载入提交数据...
README.rst 正在载入提交数据...
codecov.yml 正在载入提交数据...
conftest.py 正在载入提交数据...
environment-osx-arm64.yml 正在载入提交数据...
environment.yml 正在载入提交数据...
pyproject.toml 正在载入提交数据...
setup.py 正在载入提交数据...