MCPcopy Create free account
hub / github.com/apache/singa / __next__

Method __next__

python/singa/data.py:111–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 return
110
111 def __next__(self):
112 assert self.p is not None, 'call start before next'
113 while self.queue.empty():
114 time.sleep(0.1)
115 x, y = self.queue.get() # dequeue one mini-batch
116 return x, y
117
118 def end(self):
119 if self.p is not None:

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected