(cls)
| 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 |