MCPcopy Index your code
hub / github.com/apache/tvm / tempdir

Function tempdir

python/tvm/support/utils.py:184–199  ·  view source on GitHub ↗

Create temp dir which deletes the contents when exit. Parameters ---------- custom_path : str, optional Manually specify the exact temp dir path keep_for_debug : bool Keep temp directory for debugging purposes Returns ------- temp : TempDirectory

(custom_path=None, keep_for_debug=None)

Source from the content-addressed store, hash-verified

182
183
184def tempdir(custom_path=None, keep_for_debug=None):
185 """Create temp dir which deletes the contents when exit.
186
187 Parameters
188 ----------
189 custom_path : str, optional
190 Manually specify the exact temp dir path
191
192 keep_for_debug : bool
193 Keep temp directory for debugging purposes
194 Returns
195 -------
196 temp : TempDirectory
197 The temp directory object
198 """
199 return TempDirectory(custom_path=custom_path, keep_for_debug=keep_for_debug)
200
201
202class FileLock:

Callers 1

test_min_repeat_msFunction · 0.90

Calls 1

TempDirectoryClass · 0.85

Tested by 1

test_min_repeat_msFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…