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

Method __init__

caffe2/python/queue_util.py:18–23  ·  view source on GitHub ↗
(self, wrapper, num_dequeue_records=1)

Source from the content-addressed store, hash-verified

16
17class _QueueReader(dataio.Reader):
18 def __init__(self, wrapper, num_dequeue_records=1):
19 assert wrapper.schema is not None, (
20 'Queue needs a schema in order to be read from.')
21 dataio.Reader.__init__(self, wrapper.schema())
22 self._wrapper = wrapper
23 self._num_dequeue_records = num_dequeue_records
24
25 def setup_ex(self, init_net, exit_net):
26 exit_net.CloseBlobsQueue([self._wrapper.queue()], 0)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected