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

Function py_function_exporter_tp_traverse

python/src/export.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96};
97
98int py_function_exporter_tp_traverse(
99 PyObject* self,
100 visitproc visit,
101 void* arg) {
102 Py_VISIT(Py_TYPE(self));
103 if (!nb::inst_ready(self)) {
104 return 0;
105 }
106 auto* p = nb::inst_ptr<PyFunctionExporter>(self);
107 Py_VISIT(p->dep_.ptr());
108 return 0;
109}
110
111PyType_Slot py_function_exporter_slots[] = {
112 {Py_tp_traverse, (void*)py_function_exporter_tp_traverse},

Callers

nothing calls this directly

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected