You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/12/17 22:38:48 UTC

[GitHub] [tvm] vinx13 commented on a change in pull request #9718: Fix GLOBAL_SCOPE Shallow copy bug

vinx13 commented on a change in pull request #9718:
URL: https://github.com/apache/tvm/pull/9718#discussion_r771728298



##########
File path: python/tvm/autotvm/env.py
##########
@@ -27,12 +27,18 @@ def __init__(self):
         self.in_tuning = False
         self.silent = False
 
+    def deepcopy(self, global_scope):
+        self._old = AutotvmGlobalScope.current
+        AutotvmGlobalScope.current = global_scope

Review comment:
       ```suggestion
   ```
   This is not necessary as `AutotvmGlobalScope.current == GLOBAL_SCOPE` should always hold




-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org