MCPcopy Create free account
hub / github.com/wjakob/nanobind / nb_ndarray_releasebuffer

Function nb_ndarray_releasebuffer

src/nb_ndarray.cpp:274–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274static void nb_ndarray_releasebuffer(PyObject *, Py_buffer *view) {
275 PyMem_Free(view->internal);
276}
277
278// This function implements __dlpack__() for a nanobind.nb_ndarray.
279static PyObject *nb_ndarray_dlpack(PyObject *self, PyObject *const *args,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected