Skip to content
Snippets Groups Projects
Commit 25f95766 authored by Tianqi Chen's avatar Tianqi Chen Committed by GitHub
Browse files

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

parent da27cfec
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment