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

Method AppendOutputRecordField

caffe2/python/core.py:2169–2180  ·  view source on GitHub ↗
(self, field_name, record)

Source from the content-addressed store, hash-verified

2167 self.set_output_record(record)
2168
2169 def AppendOutputRecordField(self, field_name, record):
2170 from caffe2.python import schema
2171 assert self._output_record is not None, (
2172 'Tried to append to missing output record'
2173 )
2174 for blob in record.field_blobs():
2175 assert self.BlobIsDefined(blob), "{} is not defined".format(blob)
2176 for blob in record.field_blobs():
2177 self.AddExternalOutput(blob)
2178 self._output_record = self._output_record + schema.Struct(
2179 (field_name, record)
2180 )
2181
2182 def input_record(self):
2183 return self._input_record

Callers 4

modify_netMethod · 0.80
modify_netMethod · 0.80
modify_netMethod · 0.80
modify_netMethod · 0.80

Calls 4

BlobIsDefinedMethod · 0.95
AddExternalOutputMethod · 0.95
field_blobsMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected