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

Method get_buffer_info

deps/pybind11/tests/test_buffers.cpp:184–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 int32_t value = 0;
183
184 py::buffer_info get_buffer_info() {
185 return py::buffer_info(
186 &value, sizeof(value), py::format_descriptor<int32_t>::format(), 1);
187 }
188 };
189 py::class_<Buffer>(m, "Buffer", py::buffer_protocol())
190 .def(py::init<>())

Callers 3

test_ctypes_array_1dFunction · 0.45
test_ctypes_array_2dFunction · 0.45
test_ctypes_from_bufferFunction · 0.45

Calls 1

buffer_infoClass · 0.85

Tested by

no test coverage detected