tqchen commented on a change in pull request #5581:
URL: https://github.com/apache/incubator-tvm/pull/5581#discussion_r425207128



##########
File path: python/tvm/contrib/util.py
##########
@@ -30,6 +32,32 @@ class TempDirectory(object):
     Automatically removes the directory when it went out of scope.
     """
 
+    # When True, all TempDirectory are *NOT* deleted and instead live inside a 
predicable directory
+    # tree.
+    DEBUG_MODE = False

Review comment:
       Thinking a bit about API, how about
   ```python
   with tvm.util.TemporaryDirectory.debug_mode():
       # content
   # no need to set it back later
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to