Skip to content

Commit 4344b6c

Browse files
author
mrcangye
committed
update manipulation.py paddle.moveaxis
1 parent 69a4a39 commit 4344b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/tensor/manipulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4024,7 +4024,7 @@ def moveaxis(x, source, destination, name=None):
40244024
# [4, 3, 2]
40254025
40264026
x = paddle.ones([2, 3])
4027-
paddle.moveaxis(x, 0, 1) # equivalent to paddle.t(x)
4027+
paddle.moveaxis(x, 0, 1).shape # equivalent to paddle.t(x)
40284028
# [3, 2]
40294029
"""
40304030
src = [source] if isinstance(source, int) else source

0 commit comments

Comments
 (0)