Returns:
A tuple of List{Node] and List[Layer].
if not keras_tensor.keras_tensors_enabled():
base_layer_utils.create_keras_history(outputs)
// Keep only nodes and layers in the topology between inputs and outputs.
_, nodes_by_depth, layers, _ = _map_graph_network(inputs, outputs)
After Change
Returns:
A tuple of List{Node] and List[Layer].
if not tf.compat.v1.executing_eagerly_outside_functions():
base_layer_utils.create_keras_history(outputs)
// Keep only nodes and layers in the topology between inputs and outputs.
_, nodes_by_depth, layers, _ = _map_graph_network(inputs, outputs)