Browse Source

!13810 fix error of context field not defined

From: @wangnan39
Reviewed-by: @kingxian,@zh_qh
Signed-off-by: @kingxian,@zh_qh
pull/13810/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
87c97ecb26
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/context.py

+ 1
- 0
mindspore/context.py View File

@@ -83,6 +83,7 @@ class _ThreadLocalInfo(threading.local):
def __init__(self):
super(_ThreadLocalInfo, self).__init__()
self._reserve_class_name_in_scope = True
self.debug_runtime = False

@property
def reserve_class_name_in_scope(self):


Loading…
Cancel
Save