MCPcopy Create free account
hub / github.com/apple/coremltools / ndim

Method ndim

deps/pybind11/include/pybind11/numpy.h:934–934  ·  view source on GitHub ↗

Number of dimensions

Source from the content-addressed store, hash-verified

932
933 /// Number of dimensions
934 ssize_t ndim() const { return detail::array_proxy(m_ptr)->nd; }
935
936 /// Base object
937 object base() const { return reinterpret_borrow<object>(detail::array_proxy(m_ptr)->base); }

Callers 8

test_array_attributesFunction · 0.45
test_dtype_refcount_leakFunction · 0.45
auxiliariesFunction · 0.45
TEST_SUBMODULEFunction · 0.45
conformableMethod · 0.45
loadMethod · 0.45
loadFunction · 0.45
loadMethod · 0.45

Calls 1

array_proxyFunction · 0.85

Tested by 4

test_array_attributesFunction · 0.36
test_dtype_refcount_leakFunction · 0.36
auxiliariesFunction · 0.36
TEST_SUBMODULEFunction · 0.36