MCPcopy Create free account
hub / github.com/pytorch/pytorch / remap_proto

Function remap_proto

caffe2/python/core.py:1353–1361  ·  view source on GitHub ↗
(argument, blob_remap)

Source from the content-addressed store, hash-verified

1351
1352
1353def remap_proto(argument, blob_remap):
1354 subnet = Net(argument.n)
1355
1356 cloned_sub_net = subnet.Clone(
1357 'cloned_sub_net',
1358 blob_remap,
1359 )
1360
1361 argument.n.CopyFrom(cloned_sub_net.Proto())
1362
1363
1364def clone_and_bind_net(net, name, prefix, blob_remap=None, inputs=None,

Callers 1

Calls 3

CloneMethod · 0.95
NetClass · 0.70
ProtoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…