Browse Source

Revert "fix(mge/subgraph): fix mem leak"

This reverts commit 48beb625e1.

GitOrigin-RevId: 5fc58d5903
release-1.7
Megvii Engine Team 3 years ago
parent
commit
f64a2e02c9
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      imperative/python/src/ops.cpp

+ 0
- 1
imperative/python/src/ops.cpp View File

@@ -450,7 +450,6 @@ 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));
}


Loading…
Cancel
Save