-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docathon][Add API Legend No.11 BUAA] #6787
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,6 +9,11 @@ rot90 | |||||||||||
|
||||||||||||
沿 axes 指定的平面将 n 维 tensor 旋转 90 度。当 k 为正数,旋转方向为从 axes[0]到 axes[1],当 k 为负数,旋转方向为从 axes[1]到 axes[0],k 的绝对值表示旋转次数。 | ||||||||||||
|
||||||||||||
下图展示了一个形状为 [2,3,4] 的三维张量在选定旋转方向为 0 到 1 并旋转 1 次··时,通过 rot90 操作转变为形状为 [3,2,4] 的三维张量,我们可以清晰地看到转变前后各元素的对应关系。 | ||||||||||||
|
||||||||||||
.. image:: ../../images/api_legend/rot90.png | ||||||||||||
:alt: 图例 | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
图片调小一些 |
||||||||||||
|
||||||||||||
参数 | ||||||||||||
:::::::::: | ||||||||||||
|
||||||||||||
|
@@ -22,8 +27,8 @@ rot90 | |||||||||||
|
||||||||||||
- 在指定平面 axes 上翻转指定次数后的 Tensor,与输入 x 数据类型相同。 | ||||||||||||
|
||||||||||||
|
||||||||||||
代码示例 | ||||||||||||
···· | ||||||||||||
代码示例· | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这部分不需要改 |
||||||||||||
:::::::::: | ||||||||||||
|
||||||||||||
COPY-FROM: paddle.rot90 |
Luohongzhige marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
选定旋转方向为 0 到 1
没太明白,是想说旋转平面嘛?1 次··时
是啥最好根据参数描述来说明,方便开发者理解