From 16c7c96e32a3d656707b2b034a77d8d83eaa23bd Mon Sep 17 00:00:00 2001 From: mrcangye Date: Mon, 1 Aug 2022 16:05:07 +0800 Subject: [PATCH] update manipulation.py paddle.moveaxis (#44191) --- python/paddle/tensor/manipulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index 4053cc43b30..0439cc2767f 100755 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -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 -- GitLab