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

Method rename_input

python/paddle/base/framework.py:5439–5450  ·  view source on GitHub ↗

Rename the input of this node. Args: old_input_name(str): the old input name. new_input_name(str): the new input name.

(self, old_input_name, new_input_name)

Source from the content-addressed store, hash-verified

5437 self.node = node
5438
5439 def rename_input(self, old_input_name, new_input_name):
5440 """
5441 Rename the input of this node.
5442
5443 Args:
5444 old_input_name(str): the old input name.
5445 new_input_name(str): the new input name.
5446 """
5447 assert self.node.op() is not None, (
5448 "The node operator description can not be None."
5449 )
5450 self.node.op()._rename_input(old_input_name, new_input_name)
5451
5452 def rename_output(self, old_output_name, new_output_name):
5453 """

Callers 2

update_input_linkMethod · 0.45

Calls 2

_rename_inputMethod · 0.80
opMethod · 0.45

Tested by

no test coverage detected