-
Notifications
You must be signed in to change notification settings - Fork 766
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5116.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
@@ -8,18 +8,18 @@ affine_grid | |||
|
|||
|
|||
|
|||
该OP用于生成仿射变换前后的feature maps的坐标映射关系。在视觉应用中,根据该OP得到的映射关系,将输入feature map的像素点变换到对应的坐标,就得到了经过仿射变换的feature map。 | |||
该 OP 用于生成仿射变换前后的 feature maps 的坐标映射关系。在视觉应用中,根据该 OP 得到的映射关系,将输入 feature map 的像素点变换到对应的坐标,就得到了经过仿射变换的 feature map。 |
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.
- fluid下的API文档可以不做处理,2.4版本后,fluid下的API会逐渐退场(这里改了就这样吧~)
- 区分op与API的概念,删除「该OP」的错误说法
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.
已修改
- **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。 |
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.
- **align_corners** (bool, optional):
--> - **align_corners** (bool,可选) -
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.
已修改
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.
LGTM
modify affine_grid's document