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

Function get_net_name

caffe2/python/core.py:2638–2644  ·  view source on GitHub ↗
(netlike)

Source from the content-addressed store, hash-verified

2636
2637
2638def get_net_name(netlike):
2639 if isinstance(netlike, Net):
2640 return netlike.Proto().name
2641 elif isinstance(netlike, caffe2_pb2.NetDef):
2642 return netlike.name
2643 else:
2644 return netlike
2645
2646
2647def output_to_list(op_output):

Callers 4

_add_net_to_dictFunction · 0.85
__init__Method · 0.85
SetReportNetMethod · 0.85
AddNetMethod · 0.85

Calls 2

isinstanceFunction · 0.85
ProtoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…