MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _test_dir

Method _test_dir

tensorflow/python/training/supervisor_test.py:71–75  ·  view source on GitHub ↗
(self, test_name)

Source from the content-addressed store, hash-verified

69class SupervisorTest(test.TestCase):
70
71 def _test_dir(self, test_name):
72 test_dir = os.path.join(self.get_temp_dir(), test_name)
73 if os.path.exists(test_dir):
74 shutil.rmtree(test_dir)
75 return test_dir
76
77 def _wait_for_glob(self, pattern, timeout_secs, for_checkpoint=True):
78 """Wait for a checkpoint file to appear.

Calls 2

get_temp_dirMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected