• Brendan Murphy's avatar
    Replace use of `np.MAXDIMS` · 18e6c04d
    Brendan Murphy 提交于
    `np.MAXDIMS` was removed from the public API and
    no replacement is given in the migration docs.
    
    In numpy <= 1.26, the value of `np.MAXDIMS` was 32.
    This was often used as a flag to mean `axis=None`.
    
    In numpy >= 2.0, the maximum number of dims of an
    array has been increased to 64; simultaneously, a
    constant `NPY_RAVEL_AXIS` was added to the C-API to
    indicate that `axis=None`.
    
    In most cases, the use of `np.MAXDIMS` to
    check for `axis=None` can be replaced by the
    new constant `NPY_RAVEL_AXIS`.
    
    To make this constant accessible when using numpy <= 1.26,
    I added a function to insert `npy_2_compat.h` into the support
    code for the affected ops.
    18e6c04d
名称
最后提交
最后更新
.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 正在载入提交数据...