Commit 25f95766 by Tianqi Chen Committed by GitHub

[PYTHON] Allow no de-allocation when exit (#583)

parent da27cfec
......@@ -22,7 +22,7 @@ class NDArrayBase(object):
self.is_view = is_view
def __del__(self):
if not self.is_view:
if not self.is_view and _LIB:
check_call(_LIB.TVMArrayFree(self.handle))
@property
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment