MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / name2node

Method name2node

tools/low_precision_optimize/simple_graph.py:147–149  ·  view source on GitHub ↗

Get node by name.

(self, name: str)

Source from the content-addressed store, hash-verified

145 return self._nodes[idx]
146
147 def name2node(self, name: str) -> SimpleNode:
148 """Get node by name."""
149 return self.node(self._name2index[name])
150
151 def input_nodes(self, blacklist: List = ["Const"]) -> List[str]:
152 """Get names of input nodes"""

Callers

nothing calls this directly

Calls 1

nodeMethod · 0.95

Tested by

no test coverage detected