From 756f01db76d991a8f59ae80bf53ed6f5713541c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E5=B3=BB=E5=B3=B0?= Date: Tue, 2 Aug 2022 11:55:24 +0800 Subject: [PATCH] Update manipulation.py for rot90() (#44038) --- 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 8d818aae57a3d..eb264723e797f 100755 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -1266,7 +1266,7 @@ def flip(x, axis, name=None): def rot90(x, k=1, axes=[0, 1], name=None): """ - Rotate a n-D tensor by 90 degrees. The rotation direction and times are specified by axes. Rotation direction is from axes[0] towards axes[1] if k > 0, and from axes[1] towards axes[0] for k < 0. + Rotate a n-D tensor by 90 degrees. The rotation direction and times are specified by axes and the absolute value of k. Rotation direction is from axes[0] towards axes[1] if k > 0, and from axes[1] towards axes[0] for k < 0. Args: x (Tensor): The input Tensor(or LoDTensor). The data type of the input Tensor x