MCPcopy Create free account
hub / github.com/pytorch/pytorch / TemporaryDirectory

Class TemporaryDirectory

caffe2/python/allcompare_test.py:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class TemporaryDirectory:
22 def __enter__(self):
23 self.tmpdir = tempfile.mkdtemp()
24 return self.tmpdir
25
26 def __exit__(self, type, value, traceback):
27 shutil.rmtree(self.tmpdir)
28
29
30def allcompare_process(filestore_dir, process_id, data, num_procs):

Callers 1

test_allcompareMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_allcompareMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…