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

Method __init__

caffe2/python/dataio.py:326–332  ·  view source on GitHub ↗
(self, reader)

Source from the content-addressed store, hash-verified

324 """
325
326 def __init__(self, reader):
327 Reader.__init__(self, schema=reader._schema)
328 self.reader = reader
329 self.net = core.Net('reader_with_limit')
330 self._data_finished = self.net.AddExternalInput(
331 self.net.NextName('data_finished'))
332 self.should_stop = None
333
334 def setup_ex(self, global_init_net, global_finish_net):
335 global_init_net.ConstantFill(

Callers

nothing calls this directly

Calls 4

NetMethod · 0.80
AddExternalInputMethod · 0.80
NextNameMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected