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

Method _get_node_fanin

tensorflow/python/grappler/controller.py:136–143  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

134 # Beware: this doesn't take into account the nodes that may be skipped
135 # since placement constraints force their placement.
136 def _get_node_fanin(self, node):
137 input_ops = []
138 for fanin_name in node.input:
139 if fanin_name[0] == "^":
140 fanin_name = fanin_name[1:]
141 fanin_name = fanin_name.split(":")[0]
142 input_ops.append(self.get_node_by_name(fanin_name))
143 return input_ops

Callers 1

__init__Method · 0.95

Calls 3

get_node_by_nameMethod · 0.95
splitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected