MCPcopy Create free account
hub / github.com/pytorch/pytorch / read_record

Method read_record

caffe2/python/dataio.py:101–105  ·  view source on GitHub ↗
(self, read_net)

Source from the content-addressed store, hash-verified

99 raise NotImplementedError('This reader cannot be resetted.')
100
101 def read_record(self, read_net):
102 should_stop, fields = self.read(read_net)
103 if self._schema:
104 fields = from_blob_list(self._schema, fields)
105 return should_stop, fields
106
107 def execution_step(self, reader_net_name=None, external_should_stop=None):
108 """Create an execution step with a net containing read operators.

Callers 5

execution_stepMethod · 0.95
buildMethod · 0.80
test_text_file_readerMethod · 0.80
test_dataset_opsMethod · 0.80
test_record_queueMethod · 0.80

Calls 2

readMethod · 0.95
from_blob_listFunction · 0.90

Tested by 3

test_text_file_readerMethod · 0.64
test_dataset_opsMethod · 0.64
test_record_queueMethod · 0.64