MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / Zero

Class Zero

tensorpack/dataflow/parallel_map.py:527–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525 import time
526
527 class Zero(DataFlow):
528 def __init__(self, size):
529 self._size = size
530
531 def __iter__(self):
532 for k in range(self._size):
533 yield [k]
534
535 def __len__(self):
536 return self._size
537
538 def f(x):
539 if x[0] < 10:

Callers 1

parallel_map.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected