Skip to content

Commit

Permalink
Update manipulation.py
Browse files Browse the repository at this point in the history
rot90()的描述部分明显有错误: The rotation direction and times are specified by axes. 此处应该是漏掉了"k的绝对值"。
  • Loading branch information
xiongjunfeng authored Jul 3, 2022
1 parent 755438a commit e7bb893
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 @@ -1253,7 +1253,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
Expand Down

0 comments on commit e7bb893

Please sign in to comment.