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

Method testBasic

tensorflow/contrib/eager/python/datasets_test.py:45–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43class IteratorTest(test.TestCase):
44
45 def testBasic(self):
46 got = []
47 for t in datasets.Iterator(dataset_ops.Dataset.range(4)):
48 got.append(t.numpy())
49 self.assertAllEqual([0, 1, 2, 3], got)
50
51 def testBasicOneShotIterator(self):
52 got = []

Callers

nothing calls this directly

Calls 5

IteratorMethod · 0.45
rangeMethod · 0.45
appendMethod · 0.45
numpyMethod · 0.45
assertAllEqualMethod · 0.45

Tested by

no test coverage detected