Skip to content

Use PackedTensorAccessor32 in cpp extension tutorial #644

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

Merged
merged 4 commits into from
Oct 1, 2019

Conversation

peterbell10
Copy link

Closes pytorch/pytorch#19268

See pytorch/pytorch#25654 for the corresponding renaming of PackedTensorAccessor.

@netlify
Copy link

netlify bot commented Sep 4, 2019

Deploy preview for pytorch-tutorials-preview ready!

Built with commit 07839ae

https://deploy-preview-644--pytorch-tutorials-preview.netlify.com

facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Sep 10, 2019
Summary:
Closes #19268

This does the renaming suggested by ezyang in #19268 (comment) except that the templated version of `packed_accessor` is also renamed to `generic_packed_accessor`.

Additionally, all of the users I could find in `ATen/native/cuda` are updated without changing their index types.

The corresponding tutorial update is in pytorch/tutorials#644
Pull Request resolved: #25654

Differential Revision: D17259208

Pulled By: ezyang

fbshipit-source-id: 172a46f623d544ca16f7ed5077b6e4f57a3d1f21
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 10, 2019
Summary:
Closes pytorch/pytorch#19268

This does the renaming suggested by ezyang in pytorch/pytorch#19268 (comment) except that the templated version of `packed_accessor` is also renamed to `generic_packed_accessor`.

Additionally, all of the users I could find in `ATen/native/cuda` are updated without changing their index types.

The corresponding tutorial update is in pytorch/tutorials#644
Pull Request resolved: pytorch/pytorch#25654

Differential Revision: D17259208

Pulled By: ezyang

fbshipit-source-id: 172a46f623d544ca16f7ed5077b6e4f57a3d1f21
@ezyang ezyang merged commit e0791cf into pytorch:master Oct 1, 2019
@peterbell10 peterbell10 deleted the packed_accessor branch October 1, 2019 14:36
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
Use PackedTensorAccessor32 in cpp extension tutorial
@TimZaman
Copy link

Nit - the tutorial refers to code that's different from the tutorial as it was changed in this PR; https://github.com/pytorch/extension-cpp/blob/master/cuda/lltm_cuda_kernel.cu eg in my copy-pasta i suddenly ended up with the legacy PackedTensorAccessor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

32-bit PackedTensorAccessor
5 participants