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

Method rename_output

python/paddle/base/framework.py:5452–5463  ·  view source on GitHub ↗

Rename the output of this node. Args: old_output_name(str): the old output name. new_output_name(str): the new output name.

(self, old_output_name, new_output_name)

Source from the content-addressed store, hash-verified

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 """
5454 Rename the output of this node.
5455
5456 Args:
5457 old_output_name(str): the old output name.
5458 new_output_name(str): the new output name.
5459 """
5460 assert self.node.op() is not None, (
5461 "The node operator description can not be None."
5462 )
5463 self.node.op()._rename_output(old_output_name, new_output_name)
5464
5465 def input(self, name):
5466 """

Callers 2

update_output_linkMethod · 0.45

Calls 2

_rename_outputMethod · 0.80
opMethod · 0.45

Tested by

no test coverage detected