Browse Source

!13812 fix error when use context in sub thread

From: @wangnan39
Reviewed-by: @zh_qh,@kingxian
Signed-off-by: @zh_qh
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
89aaa7ed89
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