MCPcopy 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
81template <typename... Ix>
82arr data(const arr &a, Ix... index) {
83 return arr(a.nbytes() - a.offset_at(index...), (const uint8_t *) a.data(index...));
84}
85
86template <typename... Ix>
87arr data_t(const arr_t &a, Ix... index) {

Callers

nothing calls this directly

Calls 4

arrFunction · 0.85
offset_atMethod · 0.80
nbytesMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected