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

Method owndata

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

If set, the array owns the data (will be freed when the array is deleted)

Source from the content-addressed store, hash-verified

968
969 /// If set, the array owns the data (will be freed when the array is deleted)
970 bool owndata() const {
971 return detail::check_flags(m_ptr, detail::npy_api::NPY_ARRAY_OWNDATA_);
972 }
973
974 /// Pointer to the contained data. If index is not provided, points to the
975 /// beginning of the buffer. May throw if the index would lead to out of bounds access.

Callers 2

test_array_attributesFunction · 0.80
TEST_SUBMODULEFunction · 0.80

Calls 1

check_flagsFunction · 0.85

Tested by 2

test_array_attributesFunction · 0.64
TEST_SUBMODULEFunction · 0.64