MCPcopy Index your code
hub / github.com/pytorch/pytorch / _make_temp_path

Method _make_temp_path

caffe2/python/dataio_test.py:360–365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

358 shutil.rmtree(path) # Remove dir recursively.
359
360 def _make_temp_path(self):
361 # Make a temp path as db_path.
362 with tempfile.NamedTemporaryFile() as f:
363 temp_path = f.name
364 self.temp_paths.append(temp_path)
365 return temp_path
366
367 @staticmethod
368 def _build_source_reader(ws, size):

Callers 2

test_cached_readerMethod · 0.95
test_db_file_readerMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected