Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/coremltools
/ nbytes
Method
nbytes
deps/pybind11/include/pybind11/numpy.h:931–931 ·
view source on GitHub ↗
Total number of bytes
Source
from the content-addressed store, hash-verified
929
930
/// Total number of bytes
931
ssize_t nbytes() const { return size() * itemsize(); }
932
933
/// Number of dimensions
934
ssize_t ndim() const { return detail::array_proxy(m_ptr)->nd; }
Callers
5
test_array_attributes
Function · 0.45
data
Function · 0.45
test_numpy_array.cpp
File · 0.45
auxiliaries
Function · 0.45
TEST_SUBMODULE
Function · 0.45
Calls
2
itemsize
Function · 0.85
size
Function · 0.50
Tested by
4
test_array_attributes
Function · 0.36
data
Function · 0.36
auxiliaries
Function · 0.36
TEST_SUBMODULE
Function · 0.36