【2.0 API】Enhance affine grid operator#26385
【2.0 API】Enhance affine grid operator#26385wanghaoshuang merged 7 commits intoPaddlePaddle:developfrom
Conversation
1. Add cuda kernel 2. Add align corners options test=develop
|
Thanks for your contribution! |
|
问题一、能否将对3D的支持推迟一下?
问题二、还需要为paddle.nn.functional.affine_grid写单测么?
|
|
test=develop
453688a to
d91f592
Compare
| namespace ops = paddle::operators; | ||
| REGISTER_OP_CUDA_KERNEL( | ||
| affine_grid, | ||
| ops::AffineGridOpKernel<paddle::platform::CUDADeviceContext, float>, |
There was a problem hiding this comment.
so the cuda version mostly reused the eigen implementation? some preliminary benchmark would be nice if time permits.
There was a problem hiding this comment.
Added CUDA kernel.
I will give some performance benchmark on CUDNN version and CUDA kernel version in the future.
Currently, it will use CUDNN kernel when align_corners is true and use CUDA kernel when align_corners is false.
willthefrog
left a comment
There was a problem hiding this comment.
need subsequent PR to add support for higher dimensions, otherwise LGTM
de31410
test=develop
4a1141b to
dd46209
Compare
… grid_api test=develop
60b1c28 to
1057b18
Compare
PR types
Others
PR changes
OPs
Describe