MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / py_dump

Function py_dump

imperative/python/src/ops.cpp:220–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 }
219
220 static PyObject* py_dump(PyObject* self) {
221 return py::cast(reinterpret_cast<EnumWrapper*>(self)->to_string())
222 .release()
223 .ptr();
224 }
225
226 static PyObject* tp_richcompare(PyObject* self, PyObject* other, int op) {
227 if (op == Py_EQ || op == Py_NE) {

Callers

nothing calls this directly

Calls 5

castFunction · 0.85
ptrMethod · 0.45
releaseMethod · 0.45
to_stringMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected