-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Support NHWC upsampling for CUDA. #35203
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
Comments
Hi, We could add a template parameter to the Thoughts ? |
Parameterized looks acceptable, but please avoid parameterizing on |
Nit: You might find this information useful https://github.com/pytorch/pytorch/wiki/Writing-memory-format-aware-operators |
Hi @VitalyFedyunin. Thanks for the resources, I will take a look and work on the changes. |
Hi @VitalyFedyunin, I have a question: I can see that for the Do we add the parameter and update both Thanks |
Hi, I cannot manage to put time aside to work on the issue for the moment. My schedule got crazy. Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
🚀 Feature
Add support for NHWC images for upsampling nearest in CUDA.
pytorch/vision#1179 (comment)
Motivation
We need this work in order to match the work from This PR and have feature parity with CPU.
In addition, this would help us further support an ongoing work done with @fmassa to have efficient native image reading ops in
torchvision
.Pitch
I propose the replicate work done in This PR](#34597) and add a new code path as it was done here:
https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/cpu/UpSampleKernel.cpp#L342-L351
This approach is simple. We would also stay consistent with the approach already taken. However, it's going to be hard to avoid unnecessary code duplication. I'll do my best.
@fmassa , @VitalyFedyunin Thoughts?
cc @ngimel @VitalyFedyunin @jamesr66a
The text was updated successfully, but these errors were encountered: