!18718 Move parameter __del__ to correct place

Merge pull request !18718 from huanghui/fix-del-parameter
This commit is contained in:
i-robot 2021-06-24 01:29:09 +00:00 committed by Gitee
commit 532cb463f5
1 changed files with 3 additions and 3 deletions

View File

@ -564,6 +564,9 @@ class Parameter(Tensor_):
obj.sliced = set_sliced
return obj
def __del__(self):
self.param_info = None
class ParameterTuple(tuple):
"""
@ -630,6 +633,3 @@ class ParameterTuple(tuple):
def __parameter_tuple__(self):
"""For parse check."""
def __del__(self):
self.param_info = None