-
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
deconv cudnn forward passed #5235
Conversation
* refine evaluator op types * update * follow comments * update * fix v2 mnist case * fix v2 mnist case * update * update
* "modify layers.py" * "fix pool interface" * "add export type to layers" * "fix based on comment"
* AddBiasOp does not care num_flatten_dims * Add comments
You should remove uncorrelated commits. Maybe |
} // namespace paddle | ||
|
||
namespace ops = paddle::operators; | ||
REGISTER_OP(conv2dtranspose_cudnn, ops::Conv2DTransposeOp, |
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.
Is it appropriate that replacing conv2dtranspose_cudnn
with conv2d_transpose_cudnn
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.
Done.
|
using DataLayout = platform::DataLayout; | ||
using CUDADeviceContext = platform::CUDADeviceContext; | ||
|
||
static constexpr size_t kCONV_CUDNN_WORKSPACE_LIMIT_BYTES = 1024 * 1024 * 1024; |
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.
this not meed the google code style.
http://google.github.io/styleguide/cppguide.html#Constant_Names
|
||
std::vector<int> strides = ctx.Attr<std::vector<int>>("strides"); | ||
std::vector<int> paddings = ctx.Attr<std::vector<int>>("paddings"); | ||
std::vector<int> dilations = ctx.Attr<std::vector<int>>("dilations"); |
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.
add a comment that cuDNN does not support dilations.
|
||
namespace ops = paddle::operators; | ||
|
||
REGISTER_OP_GPU_KERNEL(conv2d_transpose_cudnn, |
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.
why name it conv2d_transpose
?
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!
working on backward now...