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

Method read_ex

caffe2/python/queue_util.py:28–37  ·  view source on GitHub ↗
(self, local_init_net, local_finish_net)

Source from the content-addressed store, hash-verified

26 exit_net.CloseBlobsQueue([self._wrapper.queue()], 0)
27
28 def read_ex(self, local_init_net, local_finish_net):
29 self._wrapper._new_reader(local_init_net)
30 dequeue_net = core.Net('dequeue')
31 fields, status_blob = dequeue(
32 dequeue_net,
33 self._wrapper.queue(),
34 len(self.schema().field_names()),
35 field_names=self.schema().field_names(),
36 num_records=self._num_dequeue_records)
37 return [dequeue_net], status_blob, fields
38
39 def read(self, net):
40 net, _, fields = self.read_ex(net, None)

Callers 1

readMethod · 0.95

Calls 6

dequeueFunction · 0.85
_new_readerMethod · 0.80
NetMethod · 0.80
queueMethod · 0.80
field_namesMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected