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

Method write_ex

caffe2/python/queue_util.py:51–55  ·  view source on GitHub ↗
(self, fields, local_init_net, local_finish_net, status)

Source from the content-addressed store, hash-verified

49 exit_net.CloseBlobsQueue([self._wrapper.queue()], 0)
50
51 def write_ex(self, fields, local_init_net, local_finish_net, status):
52 self._wrapper._new_writer(self.schema(), local_init_net)
53 enqueue_net = core.Net('enqueue')
54 enqueue(enqueue_net, self._wrapper.queue(), fields, status)
55 return [enqueue_net]
56
57
58class QueueWrapper(dataio.Pipe):

Callers

nothing calls this directly

Calls 5

enqueueFunction · 0.85
_new_writerMethod · 0.80
NetMethod · 0.80
queueMethod · 0.80
schemaMethod · 0.45

Tested by

no test coverage detected