-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[CUDA] 64-bit indexing for avg_pool_backward #114193
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/114193
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 79edabb with merge base e942675 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
CC @malfet |
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
@pytorchmergebot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
da18443
to
d996e55
Compare
__global__ void avg_pool2d_backward_out_cuda_frame_nhwc(const index_t nthreads, | ||
const scalar_t* const top_diff, | ||
const int64_t channels, const int64_t height, | ||
const int64_t width, const int pooled_height, const int pooled_width, |
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.
noob question that is maybe unrelated: why are pooled_height
and pooled_width
const int
here in avg_pool2d_backward_out_cuda_frame_nhwc
but const int64_t
above in avg_pool2d_backward_out_cuda_frame
?
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.
btw I think my question is unrelated to the initial issue, did not mean to block this PR from merging. Could you perhaps file an issue about the typing difference between channels-last and non-channels-last for avg_pool though so this doesn't get lost please?
@pytorchmergebot 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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-focal-rocm5.7-py3.8 / test (default, 1, 1, linux.rocm.gpu) Details for Dev Infra teamRaised by workflow job |
@pytorchmergebot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
don't need device argument
Successfully rebased |
a11f87f
to
79edabb
Compare
@pytorchmergebot 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 |
Fixes pytorch#113833 Pull Request resolved: pytorch#114193 Approved by: https://github.com/malfet
Fixes pytorch#113833 Pull Request resolved: pytorch#114193 Approved by: https://github.com/malfet
Fixes #113833
cc @ptrblck @mikaylagawarecki