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

Method remap_default

tensorflow/contrib/graph_editor/subgraph.py:282–294  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 1

test_subgraph_remapMethod · 0.80

Calls 2

copyMethod · 0.95
_remap_defaultMethod · 0.80

Tested by 1

test_subgraph_remapMethod · 0.64