Returns the nodes and layers in the topology from `inputs` to `outputs`. Args: inputs: List of input tensors. outputs: List of output tensors. Returns: A tuple of List{Node] and List[Layer].
(inputs, outputs)
| 1835 | |
| 1836 | |
| 1837 | def _map_subgraph_network(inputs, outputs): |
| 1838 | """Returns the nodes and layers in the topology from `inputs` to `outputs`. |
| 1839 | |
| 1840 | Args: |
| 1841 | inputs: List of input tensors. |
| 1842 | outputs: List of output tensors. |
| 1843 | |
| 1844 | Returns: |
| 1845 | A tuple of List{Node] and List[Layer]. |
| 1846 | """ |
| 1847 | base_layer_utils.create_keras_history(outputs) |
| 1848 | # Keep only nodes and layers in the topology betweeen inputs and outputs. |
| 1849 | _, nodes_by_depth, layers, _ = _map_graph_network(inputs, outputs) |
| 1850 | return nest.flatten([nodes for nodes in nodes_by_depth.values()]), layers |
| 1851 | |
| 1852 | |
| 1853 | def _should_skip_first_node(layer): |
no test coverage detected