MCPcopy Create free account
hub / github.com/apache/tvm / _get_debug_parent_dir

Method _get_debug_parent_dir

python/tvm/support/utils.py:64–72  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

62
63 @classmethod
64 def _get_debug_parent_dir(cls):
65 if cls._DEBUG_PARENT_DIR is None:
66 all_parents = f"{tempfile.gettempdir()}/tvm-debug-mode-tempdirs"
67 if not os.path.isdir(all_parents):
68 os.makedirs(all_parents)
69 cls._DEBUG_PARENT_DIR = tempfile.mkdtemp(
70 prefix=datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S___"), dir=all_parents
71 )
72 return cls._DEBUG_PARENT_DIR
73
74 TEMPDIRS = set()
75

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected