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

Add float16 support for cudnn conv2d #9143

Merged
merged 3 commits into from
Mar 16, 2018

Conversation

kexinzhao
Copy link
Contributor

fix #9142

@kexinzhao kexinzhao added the 预测 原名Inference,包含Capi预测问题等 label Mar 16, 2018
@kexinzhao kexinzhao changed the title Add float16 support for cudnn conv Add float16 support for cudnn conv2d Mar 16, 2018
paddle::operators::CUDNNConvGradOpKernel<float>,
paddle::operators::CUDNNConvGradOpKernel<double>);

REGISTER_OP_KERNEL(conv3d, CUDNN, ::paddle::platform::CUDAPlace,
REGISTER_OP_KERNEL(conv3d, CUDNN, plat::CUDAPlace,
paddle::operators::CUDNNConvOpKernel<float>,
paddle::operators::CUDNNConvOpKernel<double>);
Copy link
Contributor

Choose a reason for hiding this comment

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

The logic of conv2d and conv3d is similar, can conv3d support float16?

Copy link
Contributor

@chengduoZH chengduoZH left a comment

Choose a reason for hiding this comment

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

LGTM

@kexinzhao kexinzhao merged commit 8e73101 into PaddlePaddle:develop Mar 16, 2018
@kexinzhao kexinzhao deleted the numpy_conv2d_pool2d_fp16 branch April 4, 2018 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
预测 原名Inference,包含Capi预测问题等
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need fp16 support for conv2d op
2 participants