-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[quant] Quantized adaptive_avg_pool3d #40271
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
Conversation
[ghstack-poisoned]
Closes #40244 [ghstack-poisoned]
Closes #40244 [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit dd59eba (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 18 times. |
| output_size_d=st.integers(1, 10), | ||
| output_size_h=st.integers(1, 10), | ||
| output_size_w=st.integers(1, 10)) | ||
| def test_adaptive_avg_pool3d(self, X, output_size_d, output_size_h, |
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.
there are many code duplications in these test, would be great if we can dedup some, I think dedup this one with ndhwc would be striaghtforward? also dedup with the 2d test as well if possible(maybe part of the code).
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.
I partially refactored to remove some dups, but the ndhwc is much harder -- will refactor later
| dispatch: | ||
| CPU: adaptive_avg_pool3d_cpu | ||
| CUDA: adaptive_avg_pool3d_cuda | ||
| QuantizedCPU: quantized_adaptive_avg_pool3d |
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.
I feel we should rename this, it should be adaptive_avg_pool3d_quantized_cpu same for others, we need to refactor other names as well before we can expand to other backends
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.
I think I can do it in a separate PR -- it involves changing other ones. WIll creaete a task for myself
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.
yeah we don't need to it in this PR, sounds good, thanks
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.
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.
jerryzh168
left a comment
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.
Please fix CI errors before land
Closes #40244 Differential Revision: [D22134318](https://our.internmc.facebook.com/intern/diff/D22134318) [ghstack-poisoned]
Closes #40244 Differential Revision: [D22134318](https://our.internmc.facebook.com/intern/diff/D22134318) [ghstack-poisoned]
Closes #40244 Differential Revision: [D22134318](https://our.internmc.facebook.com/intern/diff/D22134318) [ghstack-poisoned]
Closes #40244 Differential Revision: [D22134318](https://our.internmc.facebook.com/intern/diff/D22134318) [ghstack-poisoned]
Summary: Pull Request resolved: pytorch#40271 Closes pytorch#40244 Test Plan: Imported from OSS Reviewed By: vkuzo Differential Revision: D22134318 Pulled By: z-a-f fbshipit-source-id: 0489b6c083a3cbc21a1d81d8bfcc499372308088
Stack from ghstack:
Closes #40244
Differential Revision: D22134318