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

Method mutable_data

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

Source from the content-addressed store, hash-verified

983 /// May throw if the array is not writeable.
984 template <typename... Ix>
985 void *mutable_data(Ix... index) {
986 check_writeable();
987 return static_cast<void *>(detail::array_proxy(m_ptr)->data + offset_at(index...));
988 }
989
990 /// Byte offset from beginning of the array to a given index (full or partial).
991 /// May throw if the index would lead to out of bounds access.

Callers 10

auxiliariesFunction · 0.45
TEST_SUBMODULEFunction · 0.45
TEST_SUBMODULEFunction · 0.45
mutable_dataMethod · 0.45
dataMethod · 0.45
loadFunction · 0.45
get_array_data_for_typeFunction · 0.45

Calls 2

array_proxyFunction · 0.85
offset_atFunction · 0.85

Tested by 5

auxiliariesFunction · 0.36
TEST_SUBMODULEFunction · 0.36
TEST_SUBMODULEFunction · 0.36