提交 ffbfe59c 编写于 作者: M Megvii Engine Team

fix(mge/subgraph): fix mem leak

GitOrigin-RevId: 48beb625e12aba3a4225d2ec114b44a6efde2f6d
上级 89186edc
......@@ -450,6 +450,7 @@ void _init_py_op_def(py::module m) {
py_type.tp_richcompare = PyOp(OpDef)::tp_richcompare;
py_type.tp_getset = py_op::py_getsetters;
py_type.tp_repr = py_op::py_repr;
py_type.tp_dealloc = py_dealloc_generic<PyOp(OpDef)>;
mgb_assert(PyType_Ready(&py_type) >= 0);
m.add_object("OpDef", reinterpret_cast<PyObject*>(&py_type));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册