Browse Source

fix error of context field not defined

pull/13810/head
wangnan39@huawei.com 5 years ago
parent
commit
dd2cd6d251
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