vinx13 commented on a change in pull request #9718:
URL: https://github.com/apache/tvm/pull/9718#discussion_r771831521
##########
File path: python/tvm/autotvm/env.py
##########
@@ -27,12 +29,18 @@ def __init__(self):
self.in_tuning = False
self.silent = False
+ def deepcopy(self, global_scope):
+ self._old = AutotvmGlobalScope.current
Review comment:
```suggestion
"""Deep copy from another instance of AutotvmGlobalScope."""
self._old = AutotvmGlobalScope.current
```
##########
File path: python/tvm/autotvm/env.py
##########
@@ -18,6 +18,8 @@
class AutotvmGlobalScope(object):
+ """The global autotvm scope. And the deepcopy function: deep copy
AutotvmGlobalScope state."""
Review comment:
```suggestion
"""The global autotvm scope."""
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]