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

Method add_node

python/paddle/utils/fwd_graph_utils.py:170–174  ·  view source on GitHub ↗
(self, name: str, node_attr="")

Source from the content-addressed store, hash-verified

168 self.nodes = []
169
170 def add_node(self, name: str, node_attr=""):
171 if not node_attr:
172 node_attr = self.grey_box_attrs
173 self.dot.node(name, name, **node_attr)
174 self.nodes.append(name)
175
176 # Link the src and dst node by edge
177 def add_edge(self, dst: str, edge: Edge):

Callers 3

add_edgeMethod · 0.95
test_graphMethod · 0.95
build_graphMethod · 0.45

Calls 2

nodeMethod · 0.80
appendMethod · 0.45

Tested by 1

test_graphMethod · 0.76