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

Method testSetInputRecordWithBlobs

caffe2/python/core_test.py:273–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271 )
272
273 def testSetInputRecordWithBlobs(self):
274 net = core.Net("test")
275 record = schema.NewRecord(net, schema.Struct(
276 ("x", schema.Scalar(np.float64)),
277 ))
278 input_record = net.set_input_record(record)
279 self.assertTrue(net.BlobIsDefined(input_record.x()))
280 self.assertIn(input_record.x(), net.external_inputs)
281
282 def testSetInputRecordWithoutBlobs(self):
283 net = core.Net("test")

Callers

nothing calls this directly

Calls 4

set_input_recordMethod · 0.95
BlobIsDefinedMethod · 0.95
NetMethod · 0.80
xMethod · 0.45

Tested by

no test coverage detected