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

Function gc_func_tp_traverse

python/src/mlx_func.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21int gc_func_tp_traverse(PyObject* self, visitproc visit, void* arg) {
22 Py_VISIT(Py_TYPE(self));
23 gc_func* w = (gc_func*)self;
24 Py_VISIT(w->func);
25 for (auto d : w->deps) {
26 Py_VISIT(d);
27 }
28 return 0;
29};
30
31int gc_func_tp_clear(PyObject* self) {
32 gc_func* w = (gc_func*)self;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected