Skip to content
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

modify affine_grid's document #5116

Merged
merged 4 commits into from
Aug 12, 2022
Merged

Conversation

carryyu
Copy link
Contributor

@carryyu carryyu commented Aug 9, 2022

modify affine_grid's document

@paddle-bot
Copy link

paddle-bot bot commented Aug 9, 2022

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5116.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:[Beta]飞桨文档预览工具

@carryyu carryyu marked this pull request as draft August 10, 2022 01:41
@carryyu carryyu marked this pull request as ready for review August 10, 2022 01:46
@@ -8,18 +8,18 @@ affine_grid



该OP用于生成仿射变换前后的feature maps的坐标映射关系。在视觉应用中,根据该OP得到的映射关系,将输入feature map的像素点变换到对应的坐标,就得到了经过仿射变换的feature map。
该 OP 用于生成仿射变换前后的 feature maps 的坐标映射关系。在视觉应用中,根据该 OP 得到的映射关系,将输入 feature map 的像素点变换到对应的坐标,就得到了经过仿射变换的 feature map。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. fluid下的API文档可以不做处理,2.4版本后,fluid下的API会逐渐退场(这里改了就这样吧~)
  2. 区分op与API的概念,删除「该OP」的错误说法

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

- **align_corners** (bool, optional):一个可选的 bool 型参数,如果为 True,则将输入和输出张量的 4 个角落像素的中心对齐,并保留角点像素的值。默认值:True。
- **theta** (Tensor) - Shape 为 ``[batch_size, 2, 3]`` 或 ``[batch_size, 3, 4]`` 的 Tensor,表示 batch_size 个 ``2X3`` 或 ``3X4`` 的变换矩阵。数据类型支持 float32,float64。
- **out_shape** (Tensor | list | tuple) - 类型可以是 1-D Tensor、list 或 tuple。用于表示在仿射变换中的输出的 shape,其格式为 ``[N, C, H, W]`` 或 ``[N, C, D, H, W]`` ,格式 ``[N, C, H, W]`` 分别表示输出 feature map 的 batch size、channel 数量、高和宽,格式 ``[N, C, D, H, W]`` 分别表示输出 feature map 的 batch size、channel 数量、深度、高和宽。数据类型支持 int32。
- **align_corners** (bool, optional):一个可选的 bool 型参数,如果为 True,则将输入和输出张量的 4(4D) 或 8(5D) 个角落像素的中心对齐,并保留角点像素的值。默认值:True。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- **align_corners** (bool, optional): --> - **align_corners** (bool,可选) -

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

Copy link
Collaborator

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Ligoml Ligoml merged commit a06a721 into PaddlePaddle:develop Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants