MCPcopy Create free account
hub / github.com/ml-explore/mlx / py_custom_function_tp_clear

Function py_custom_function_tp_clear

python/src/transforms.cpp:1012–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010 return 0;
1011}
1012int py_custom_function_tp_clear(PyObject* self) {
1013 auto* p = nb::inst_ptr<PyCustomFunction>(self);
1014 p->reset();
1015 return 0;
1016}
1017PyType_Slot py_custom_function_slots[] = {
1018 {Py_tp_traverse, (void*)py_custom_function_tp_traverse},
1019 {Py_tp_clear, (void*)py_custom_function_tp_clear},

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected