-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[Bug] Add more boundary check for FractionalMaxPool3d #161876
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161876
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit eb1f4e9 with merge base 9a665ca ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
86d0eec to
a8f3f55
Compare
|
@pytorchbot label "topic: not user facing" |
|
❌ 🤖 pytorchbot command failed: Try |
|
Didn't find following labels among repository labels: remove,release note: nn |
PyTorchBot HelpMergeRevertRebaseLabelDr CIcherry-pick |
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, but I can envision next series of errors there, when someone passes negative pool size. Can you fix this one as well?
And may be one can refactor error checking to be common between MaxPool3d and FractionalMaxPool3d?
@can-gaa-hou why do you think it's not user facing? bugfixes are indeed user facing |
My bad. I won't add this next time. |
The negative pool size has been checked before calling the aten operator. pytorch/torch/nn/modules/pooling.py Lines 1059 to 1063 in 9a665ca
Also, the MaxPool3d operator already includes these checks. pytorch/aten/src/ATen/native/DilatedMaxPool3d.cpp Lines 32 to 36 in 9a665ca
I have added more tests for these two ops. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This PR aims to fix the bug mentioned at [pytorch#161853](pytorch#161853 (comment)) Pull Request resolved: pytorch#161876 Approved by: https://github.com/malfet
This PR aims to fix the bug mentioned at [pytorch#161853](pytorch#161853 (comment)) Pull Request resolved: pytorch#161876 Approved by: https://github.com/malfet
This PR aims to fix the bug mentioned at [pytorch#161853](pytorch#161853 (comment)) Pull Request resolved: pytorch#161876 Approved by: https://github.com/malfet
This PR aims to fix the bug mentioned at [pytorch#161853](pytorch#161853 (comment)) Pull Request resolved: pytorch#161876 Approved by: https://github.com/malfet
This PR aims to fix the bug mentioned at #161853
cc @albanD @jbschlosser @mikaylagawarecki