Remap the inputs and/or outputs to the default mapping. Args: remove_input_map: if True the input map is reset to the default one. remove_output_map: if True the output map is reset to the default one. Returns: A new modified instance of the original subgraph view with its
(self, remove_input_map=True, remove_output_map=True)
| 280 | self._output_ts = list(outputs) + self._passthrough_ts |
| 281 | |
| 282 | def remap_default(self, remove_input_map=True, remove_output_map=True): |
| 283 | """Remap the inputs and/or outputs to the default mapping. |
| 284 | |
| 285 | Args: |
| 286 | remove_input_map: if True the input map is reset to the default one. |
| 287 | remove_output_map: if True the output map is reset to the default one. |
| 288 | Returns: |
| 289 | A new modified instance of the original subgraph view with its |
| 290 | input and/or output mapping reset to the default one. |
| 291 | """ |
| 292 | res = self.copy() |
| 293 | res._remap_default(remove_input_map, remove_output_map) # pylint: disable=protected-access |
| 294 | return res |
| 295 | |
| 296 | def _remap_inputs(self, new_input_indices): |
| 297 | """Remap the inputs of the subgraph in-place.""" |