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

Function GetOpNodeProducer

caffe2/python/net_drawer.py:68–78  ·  view source on GitHub ↗
(append_output, **kwargs)

Source from the content-addressed store, hash-verified

66
67
68def GetOpNodeProducer(append_output, **kwargs):
69 def ReallyGetOpNode(op, op_id):
70 if op.name:
71 node_name = '%s/%s (op#%d)' % (op.name, op.type, op_id)
72 else:
73 node_name = '%s (op#%d)' % (op.type, op_id)
74 if append_output:
75 for output_name in op.output:
76 node_name += '\n' + output_name
77 return pydot.Node(node_name, **kwargs)
78 return ReallyGetOpNode
79
80
81def GetBlobNodeProducer(**kwargs):

Callers 3

GetPydotGraphFunction · 0.85
GetPydotGraphMinimalFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…