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

Method _find_node_by_name

python/paddle/base/framework.py:5986–5997  ·  view source on GitHub ↗

Find a node in the giving nodes set by the name.

(self, nodes, node_name)

Source from the content-addressed store, hash-verified

5984 return program
5985
5986 def _find_node_by_name(self, nodes, node_name):
5987 """
5988 Find a node in the giving nodes set by the name.
5989 """
5990 target_node = None
5991 for n in nodes:
5992 if n.name() == node_name:
5993 target_node = n
5994 assert target_node is not None, (
5995 f"Cannot find the target node ({node_name})in the giving set."
5996 )
5997 return target_node
5998
5999 def _update_desc_attr(self, desc, name, val):
6000 """

Callers 15

_insert_funcMethod · 0.95
resolve_hazardMethod · 0.95
create_quant_modelFunction · 0.95
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected