MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / reroute_outputs

Function reroute_outputs

tensorflow/contrib/graph_editor/reroute.py:424–441  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

422
423
424def 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
444def swap_ios(sgv0, sgv1):

Callers

nothing calls this directly

Calls 1

_reroute_sgv_outputsFunction · 0.85

Tested by

no test coverage detected