MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / node

Method node

python/paddle/distributed/fleet/base/graphviz.py:72–80  ·  view source on GitHub ↗
(self, label, prefix, description="", **attrs)

Source from the content-addressed store, hash-verified

70 return name
71
72 def node(self, label, prefix, description="", **attrs):
73 node = Node(label, prefix, description, **attrs)
74
75 if 'rank' in attrs:
76 rank = self.rank_groups[attrs['rank']]
77 del attrs['rank']
78 rank.nodes.append(node)
79 self.nodes.append(node)
80 return node
81
82 def edge(self, source, target, **attrs):
83 edge = Edge(source, target, **attrs)

Callers 15

add_nodeMethod · 0.80
add_paramMethod · 0.80
add_opMethod · 0.80
add_argMethod · 0.80
summaryMethod · 0.80
GetApDrrDefaultAnchorFunction · 0.80
GetApDrrNativeIrOpAnchorFunction · 0.80
GetResPtnInputsFunction · 0.80
GetResPtnOutputsFunction · 0.80
GetMatchedOpsMethod · 0.80

Calls 2

NodeClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected