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

Method set_shape

python/paddle/base/framework.py:5340–5350  ·  view source on GitHub ↗

Set the node variable shape. Args: shape(list): shape to be set.

(self, shape)

Source from the content-addressed store, hash-verified

5338 self.node = node
5339
5340 def set_shape(self, shape):
5341 """
5342 Set the node variable shape.
5343
5344 Args:
5345 shape(list): shape to be set.
5346 """
5347 assert self.node.var() is not None, (
5348 "The node variable description can not be None."
5349 )
5350 self.node.var().set_shape(shape)
5351
5352 def persistable(self):
5353 """

Callers 13

linspaceFunction · 0.45
logspaceFunction · 0.45
arangeFunction · 0.45
make_data_unshardFunction · 0.45
find_op_desc_seqMethod · 0.45
_reshard_outputMethod · 0.45
_prepare_data_tensorMethod · 0.45
__init__Method · 0.45
create_var_nodeMethod · 0.45

Calls 1

varMethod · 0.45

Tested by

no test coverage detected