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

Method write_record_ex

caffe2/python/dataio.py:189–199  ·  view source on GitHub ↗

Experimental extension to the interface. Don't use yet.

(
            self, fields, local_init_net, local_finish_net, stop_blob=None)

Source from the content-addressed store, hash-verified

187 return [write_net]
188
189 def write_record_ex(
190 self, fields, local_init_net, local_finish_net, stop_blob=None):
191 """Experimental extension to the interface. Don't use yet."""
192 if isinstance(fields, Field):
193 self._schema = fields
194 fields = fields.field_blobs()
195 if stop_blob is None:
196 stop_blob = local_init_net.NextName("dequeue_status")
197 write_nets = self.write_ex(
198 fields, local_init_net, local_finish_net, stop_blob)
199 return (write_nets, stop_blob)
200
201 def commit(self, finish_net):
202 """Add operations to `finish_net` that signal end of data.

Callers 2

_runtime_threads_taskFunction · 0.80
_static_threads_taskFunction · 0.80

Calls 4

write_exMethod · 0.95
isinstanceFunction · 0.85
NextNameMethod · 0.80
field_blobsMethod · 0.45

Tested by

no test coverage detected