未验证 提交 16c7c96e 编写于 作者: 沧夜2021's avatar 沧夜2021 提交者: GitHub

update manipulation.py paddle.moveaxis (#44191)

上级 e48cb42b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册