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

Method set_type

python/paddle/base/framework.py:5495–5505  ·  view source on GitHub ↗

Change the operator type into new type. Args: new_type(str): new operator type to be set.

(self, new_type)

Source from the content-addressed store, hash-verified

5493 return self.node.op().output(name)
5494
5495 def set_type(self, new_type):
5496 """
5497 Change the operator type into new type.
5498
5499 Args:
5500 new_type(str): new operator type to be set.
5501 """
5502 assert self.node.op() is not None, (
5503 "The node operator description can not be None."
5504 )
5505 return self.node.op().set_type(new_type)
5506
5507 def set_attr(self, name, val):
5508 """

Callers 15

applyMethod · 0.45
_dtensor_from_localFunction · 0.45
_pir_nd_mesh_all2allFunction · 0.45
shard_master_weightMethod · 0.45
_init_dist_attrMethod · 0.45
unshard_dtensorFunction · 0.45
apply_gradientsMethod · 0.45
_fuse_group_paramMethod · 0.45
update_pylayer_outputFunction · 0.45
apply_mix2dist_passFunction · 0.45

Calls 1

opMethod · 0.45

Tested by

no test coverage detected