-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
mig deformable_conv to deform_conv2d #27841
Conversation
Thanks for your contribution! |
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
float32, float64. | ||
offset (Tensor): The input coordinate offset of deformable convolution layer. | ||
A Tensor with type float32, float64. | ||
Mask (Tensor, Optional): The input mask of deformable convolution layer. |
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.
Mask -> mask
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.
will fix in next PR
filter_size (int|tuple): The filter size. If filter_size is a tuple, | ||
it must contain two integers, (filter_size_H, filter_size_W). | ||
Otherwise, the filter will be a square. | ||
stride (int|tuple): The stride size. If stride is a tuple, it must |
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.
stride -> im2col_step 都需要加上"optional"
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.
will fix in next PR
* mig deformable_conv to deform_conv2d
PR types
Function optimization
PR changes
APIs
Describe
paddle.fluid.layers.deformable_conv -> paddle.static.nn.deformable_conv
的alias,重新实现paddle.static.nn.deform_conv2d
接口,修改英文文档和示例代码,改成使用2.0API。paddle.fluid.layers.deformable_conv
函数定义paddle.static.nn.deform_conv2d
函数定义预览效果见#27841 (comment)