fix core dump in pynative mode when param_info is set None

This commit is contained in:
huanghui 2021-06-30 18:03:22 +08:00
parent fca70450fc
commit 088f83b48c
1 changed files with 2 additions and 1 deletions

View File

@ -573,7 +573,8 @@ class Parameter(Tensor_):
return obj
def __del__(self):
self.param_info = None
if context.get_context("mode") == context.GRAPH_MODE:
self.param_info = None
class ParameterTuple(tuple):