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

Method _get_all_node_dependencies

tensorflow/python/keras/engine/node.py:168–179  ·  view source on GitHub ↗

Returns all of the nodes this node immediately depends on.

(self)

Source from the content-addressed store, hash-verified

166 return inputs_inbound
167
168 def _get_all_node_dependencies(self):
169 """Returns all of the nodes this node immediately depends on."""
170 node_deps = []
171 for layer, node_index, _, _ in self.iterate_inbound():
172 node_deps.append(layer._inbound_nodes[node_index])
173
174 for arg in nest.flatten(self.arguments):
175 if isinstance(arg, ops.Tensor) and hasattr(arg, '_keras_history'):
176 kh = arg._keras_history
177 node_deps.append(kh.layer._inbound_nodes[kh.node_index])
178
179 return node_deps
180
181 def get_config(self):
182 inbound_names = nest.map_structure(

Callers 1

_map_graph_networkFunction · 0.80

Calls 3

iterate_inboundMethod · 0.95
appendMethod · 0.45
flattenMethod · 0.45

Tested by

no test coverage detected