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

Method init_empty

caffe2/python/dataset.py:228–235  ·  view source on GitHub ↗

Initialize the blobs for this dataset with empty values. Empty arrays will be immediately fed into the current workspace, and `init_net` will take those blobs as external inputs.

(self, init_net)

Source from the content-addressed store, hash-verified

226 multiple_of=multiple_of)
227
228 def init_empty(self, init_net):
229 """Initialize the blobs for this dataset with empty values.
230
231 Empty arrays will be immediately fed into the current workspace,
232 and `init_net` will take those blobs as external inputs.
233 """
234 self.field_blobs = InitEmptyRecord(
235 init_net, self.schema.clone_schema()).field_blobs()
236
237 def init_from_dataframe(self, net, dataframe):
238 """Initialize the blobs for this dataset from a Pandas dataframe.

Callers 4

make_destination_datasetFunction · 0.95
test_dataset_opsMethod · 0.95
test_record_queueMethod · 0.95

Calls 3

InitEmptyRecordFunction · 0.90
clone_schemaMethod · 0.80
field_blobsMethod · 0.45

Tested by 3

make_destination_datasetFunction · 0.76
test_dataset_opsMethod · 0.76
test_record_queueMethod · 0.76