MCPcopy Create free account
hub / github.com/NVIDIA/DALI / __iter__

Method __iter__

dali/test/python/test_external_source_impl.py:124–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 return self.n
123
124 def __iter__(self):
125 # return a copy, so that the iteration number doesn't collide
126 return TestIterator(self.n, self.batch_size, self.dims, self.as_tensor)
127
128 def __next__(self):
129 random_seed(12345 * self.i + 4321)

Callers

nothing calls this directly

Calls 1

TestIteratorClass · 0.70

Tested by

no test coverage detected