• 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
名称
最后提交
最后更新
..
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 正在载入提交数据...