Re-route all the outputs of two operations. Args: sgv0: the first subgraph to have its outputs swapped. This argument is converted to a subgraph using the same rules than the function subgraph.make_view. sgv1: the second subgraph to have its outputs swapped. This argument is
(sgv0, sgv1)
| 422 | |
| 423 | |
| 424 | def reroute_outputs(sgv0, sgv1): |
| 425 | """Re-route all the outputs of two operations. |
| 426 | |
| 427 | Args: |
| 428 | sgv0: the first subgraph to have its outputs swapped. This argument is |
| 429 | converted to a subgraph using the same rules than the function |
| 430 | subgraph.make_view. |
| 431 | sgv1: the second subgraph to have its outputs swapped. This argument is |
| 432 | converted to a subgraph using the same rules than the function |
| 433 | subgraph.make_view. |
| 434 | Returns: |
| 435 | A tuple `(sgv0, sgv1)` of subgraph views with their outputs swapped. |
| 436 | Note that the function argument sgv0 and sgv1 are also modified in place. |
| 437 | Raises: |
| 438 | StandardError: if sgv0 or sgv1 cannot be converted to a SubGraphView using |
| 439 | the same rules than the function subgraph.make_view. |
| 440 | """ |
| 441 | return _reroute_sgv_outputs(sgv0, sgv1, _RerouteMode.a2b) |
| 442 | |
| 443 | |
| 444 | def swap_ios(sgv0, sgv1): |
nothing calls this directly
no test coverage detected