-
Notifications
You must be signed in to change notification settings - Fork 26.3k
meta funcs for avg_pool2d and avg_pool2d_backward #87043
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]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/87043
Note: Links to docs will display an error until the docs builds have been completed. ✅ No Failures, 5 PendingAs of commit 791b658: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
| lambda: "avg_pool2d: padding must either be a single int, or a tuple of two ints", | ||
| ) | ||
| padH = padding[0] | ||
| padW = padH if len(padding) == 1 else padding[1] |
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 this code is my fault, but just noting that we can do wayyyy better in Python now lol
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.
Since the structure here is to follow the c++ code, not sure if we want to change it or not.
Do you think that preserving the c++ structure is better or making these nice python functions?
[ghstack-poisoned]
[ghstack-poisoned]
Stack from ghstack (oldest at bottom):