MCPcopy Index your code
hub / github.com/pytorch/pytorch / add_node

Method add_node

caffe2/python/task.py:33–38  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

31 self._node_kwargs = {}
32
33 def add_node(self, node):
34 if str(node) not in self._nodes:
35 self._nodes.append(str(node))
36 self._node_kwargs[str(node)] = _merge_node_kwargs(
37 node.kwargs(),
38 self._node_kwargs.get(str(node)))
39
40 def nodes(self):
41 """

Callers 6

__init__Method · 0.45
GetPydotGraphFunction · 0.45
GetPydotGraphMinimalFunction · 0.45
_draw_netsFunction · 0.45
_draw_stepsFunction · 0.45

Calls 4

_merge_node_kwargsFunction · 0.85
appendMethod · 0.45
kwargsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected