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

Method do_test

tensorflow/python/data/kernel_tests/cache_test.py:184–191  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

182 def testCleaningUpCacheFiles(self):
183
184 def do_test(i):
185 dataset = dataset_ops.Dataset.range(10).cache(self.cache_prefix)
186 get_next = self.getNext(dataset)
187 for _ in range(i):
188 try:
189 self.evaluate(get_next())
190 except errors.OutOfRangeError:
191 break
192
193 if not context.executing_eagerly():
194 self.skipTest(

Callers

nothing calls this directly

Calls 5

getNextMethod · 0.80
rangeFunction · 0.50
cacheMethod · 0.45
rangeMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected