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

Method _remap_inputs

tensorflow/contrib/graph_editor/subgraph.py:296–301  ·  view source on GitHub ↗

Remap the inputs of the subgraph in-place.

(self, new_input_indices)

Source from the content-addressed store, hash-verified

294 return res
295
296 def _remap_inputs(self, new_input_indices):
297 """Remap the inputs of the subgraph in-place."""
298 new_input_indices = _finalize_indices(new_input_indices, self._input_ts)
299 _check_within_range(
300 new_input_indices, len(self._input_ts), repetition=False)
301 self._input_ts = [self._input_ts[i] for i in new_input_indices]
302
303 def _remap_outputs(self, new_output_indices):
304 """Remap the outputs of the subgraph in-place."""

Callers 2

remap_inputsMethod · 0.80
remapMethod · 0.80

Calls 2

_finalize_indicesFunction · 0.85
_check_within_rangeFunction · 0.85

Tested by

no test coverage detected