Skip to content

Commit

Permalink
update manipulation.py paddle.moveaxis (#44191)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcangye authored Aug 1, 2022
1 parent e48cb42 commit 16c7c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4053,7 +4053,7 @@ def moveaxis(x, source, destination, name=None):
# [4, 3, 2]
x = paddle.ones([2, 3])
paddle.moveaxis(x, 0, 1) # equivalent to paddle.t(x)
paddle.moveaxis(x, 0, 1).shape # equivalent to paddle.t(x)
# [3, 2]
"""
src = [source] if isinstance(source, int) else source
Expand Down

0 comments on commit 16c7c96

Please sign in to comment.