-
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
Add float16 support for pool 2d operator #9167
Conversation
class TestFP16CUDNN(TestConv2dOp): | ||
def init_op_type(self): | ||
self.use_cudnn = True | ||
self.op_type = "conv2d" |
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.
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
.
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.
Good point! Done.
class TestFP16CUDNNCase1(TestPool2d_Op): | ||
def init_op_type(self): | ||
self.use_cudnn = True | ||
self.op_type = "pool2d" |
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.
The same as the comment above.
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.
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!
fix #9166
Our goal is to run vgg/resnet in float16 mode for inference.
pool2d is a necessary operator in those models.