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

Method PopulateProtoWithFileName

caffe2/python/core.py:1935–1940  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1933 return reroute_cnt
1934
1935 def PopulateProtoWithFileName(self):
1936 net_tb = workspace.operator_tracebacks.get(self.Name(), None)
1937 if net_tb is not None:
1938 for idx, op in enumerate(self.Proto().op):
1939 if idx in net_tb:
1940 op.name = ':'.join(map(str, net_tb[idx][0]))
1941
1942 def NextScopedBlob(self, prefix='unnamed'):
1943 """Return the blob that has not been defined or registered in the

Callers 1

op_name_checkMethod · 0.80

Calls 4

NameMethod · 0.95
ProtoMethod · 0.95
getMethod · 0.45
joinMethod · 0.45

Tested by 1

op_name_checkMethod · 0.64