Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/coremltools
/ data
Function
data
deps/pybind11/tests/test_numpy_array.cpp:82–84 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
80
81
template <typename... Ix>
82
arr data(const arr &a, Ix... index) {
83
return arr(a.nbytes() - a.offset_at(index...), (const uint8_t *) a.data(index...));
84
}
85
86
template <typename... Ix>
87
arr data_t(const arr_t &a, Ix... index) {
Callers
nothing calls this directly
Calls
4
arr
Function · 0.85
offset_at
Method · 0.80
nbytes
Method · 0.45
data
Method · 0.45
Tested by
no test coverage detected