MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _rename_input

Method _rename_input

python/paddle/base/framework.py:3747–3758  ·  view source on GitHub ↗

Rename the `old_name` to `new_name`. Args: old_name(str): The old name of the Operator's input. new_name(str): The new name of the Operator's input. Returns: None

(self, old_name, new_name)

Source from the content-addressed store, hash-verified

3745 return self.desc.input(name)
3746
3747 def _rename_input(self, old_name, new_name):
3748 """
3749 Rename the `old_name` to `new_name`.
3750
3751 Args:
3752 old_name(str): The old name of the Operator's input.
3753 new_name(str): The new name of the Operator's input.
3754
3755 Returns:
3756 None
3757 """
3758 self.desc._rename_input(old_name, new_name)
3759
3760 def _rename_output(self, old_name, new_name):
3761 """

Callers 15

_lowerFunction · 0.95
run_adaroundFunction · 0.80
_rename_var_recursively_Function · 0.80
_rename_argFunction · 0.80
_rename_op_inputFunction · 0.80
_remove_scale_opMethod · 0.80
_gather_output_scaleMethod · 0.80
parse_op_descMethod · 0.80
adopt_lookup_table_v1Function · 0.80
_split_programMethod · 0.80

Calls

no outgoing calls

Tested by 1

_test_baseMethod · 0.64