layer_config = layer.get_config()
filtered_inbound_nodes = []
for original_node_index, node in enumerate(layer.inbound_nodes):
node_key = layer.name + "_ib-" + str(original_node_index)
if node_key in self.container_nodes:
// The node is relevant to the model:
// add to filtered_inbound_nodes.
if node.arguments:
After Change
layer_config = layer.get_config()
filtered_inbound_nodes = []
for original_node_index, node in enumerate(layer.inbound_nodes):
node_key = self._node_key(layer, original_node_index)
if node_key in self.container_nodes:
// The node is relevant to the model:
// add to filtered_inbound_nodes.
if node.arguments: