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

Method proc2

caffe2/python/session_test.py:39–45  ·  view source on GitHub ↗
(rec)

Source from the content-addressed store, hash-verified

37 return [net], out
38
39 def proc2(rec):
40 net = core.Net('proc2')
41 with core.NameScope('proc2'):
42 out = NewRecord(net, rec)
43 out.uid.set(blob=rec.uid(), unsafe=True)
44 net.Sub([rec.value(), rec.value()], [out.value()])
45 return [net], out
46
47 src_ds = Dataset(src_blobs)
48 dst_ds = Dataset(dst_blobs)

Callers

nothing calls this directly

Calls 4

NewRecordFunction · 0.90
NetMethod · 0.80
setMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected