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 pool 2d operator #9167

Merged
merged 3 commits into from
Mar 17, 2018

Conversation

kexinzhao
Copy link
Contributor

@kexinzhao kexinzhao commented Mar 16, 2018

fix #9166

Our goal is to run vgg/resnet in float16 mode for inference.
pool2d is a necessary operator in those models.

@kexinzhao kexinzhao added the 预测 原名Inference,包含Capi预测问题等 label Mar 16, 2018
class TestFP16CUDNN(TestConv2dOp):
def init_op_type(self):
self.use_cudnn = True
self.op_type = "conv2d"
Copy link
Contributor

Choose a reason for hiding this comment

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

self.op_type should be placed in setUp, because the unit tests of test_conv2d_op.py is all about conv2d and the difference is just op_kernels.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! Done.

class TestFP16CUDNNCase1(TestPool2d_Op):
def init_op_type(self):
self.use_cudnn = True
self.op_type = "pool2d"
Copy link
Contributor

Choose a reason for hiding this comment

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

The same as the comment above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

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 df99b16 into PaddlePaddle:develop Mar 17, 2018
@kexinzhao kexinzhao deleted the pool2d_fp16 branch March 17, 2018 18:08
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 float16 support for pool_2d operator
2 participants