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

Method proc1

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

Source from the content-addressed store, hash-verified

29 dst_blobs = InitEmptyRecord(init_net, src_values.clone_schema())
30
31 def proc1(rec):
32 net = core.Net('proc1')
33 with core.NameScope('proc1'):
34 out = NewRecord(net, rec)
35 net.Add([rec.uid(), rec.uid()], [out.uid()])
36 out.value.set(blob=rec.value(), unsafe=True)
37 return [net], out
38
39 def proc2(rec):
40 net = core.Net('proc2')

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected