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

Function update_passthrough_outputs

tensorflow/contrib/graph_editor/reroute.py:294–300  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

292
293 # Update the passthrough outputs as well.
294 def update_passthrough_outputs(a, b):
295 # pylint: disable=protected-access
296 for i, t in enumerate(b._output_ts):
297 if t in a._passthrough_ts:
298 ii = a._input_ts.index(t)
299 b._output_ts[i] = b._input_ts[ii]
300 # pylint: enable=protected-access
301
302 if a2b:
303 update_passthrough_outputs(sgv0_, sgv1_)

Callers 1

_reroute_sgv_remapFunction · 0.85

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected