MCPcopy Index your code
hub / github.com/pytorch/pytorch / __init__

Method __init__

caffe2/python/dataio.py:299–302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297class CounterReader(Reader):
298 """ Reader that produces increasing integers. """
299 def __init__(self):
300 Reader.__init__(self, schema=Struct(('iter', np.int64)))
301 self.counter = None
302 self.should_stop = None
303
304 def setup_ex(self, global_init_net, global_finish_net):
305 if self.counter is None:

Callers

nothing calls this directly

Calls 2

StructClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected