piiswrong commented on a change in pull request #10833: [WIP] Change class variables to thread local variables URL: https://github.com/apache/incubator-mxnet/pull/10833#discussion_r187237460
########## File path: python/mxnet/attribute.py ########## @@ -64,15 +66,35 @@ def get(self, attr): def __enter__(self): # pylint: disable=protected-access - self._old_scope = AttrScope.current - attr = AttrScope.current._attr.copy() + if not hasattr(AttrScope._current, "value"): Review comment: same ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services