Skip to content

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented May 30, 2019

Stack:
    :white_circle:  #21177 Use c10::List  💛
    :black_circle:  #21164 List  💚

Write a List type to be used in operator kernels. This abstracts away from the concrete list type used (e.g. std::vector vs SmallVector)
and allows us to change these implementation details without breaking the kernel API.
Also, this class allows for handling List, which would not work with ArrayRef because vector is a bitset and can't be converted to ArrayRef.

Differential Revision: D15476434

Differential Revision: D15476434
Differential Version: 83701491
@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label May 30, 2019
@smessmer smessmer mentioned this pull request May 30, 2019
smessmer added 2 commits May 30, 2019 13:57
Differential Revision: D15476434
Differential Version: 83720045
Differential Revision: D15476434
Differential Version: 83738373
@smessmer smessmer mentioned this pull request May 30, 2019
@smessmer
Copy link
Contributor Author

This is a re-export of #20870 which seems to have run into some technical git issues

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 5fcd37b.

zdevito pushed a commit to zdevito/ATen that referenced this pull request May 31, 2019
Summary:
Pull Request resolved: pytorch/pytorch#21164

Write a List type to be used in operator kernels. This abstracts away from the concrete list type used (e.g. std::vector vs SmallVector)
and allows us to change these implementation details without breaking the kernel API.
Also, this class allows for handling List<bool>, which would not work with ArrayRef because vector<bool> is a bitset and can't be converted to ArrayRef<bool>.

Reviewed By: ezyang

Differential Revision: D15476434

fbshipit-source-id: 5855ae36b45b70437f996c81580f34a4c91ed18c
@ezyang ezyang deleted the export-D15476434 branch July 19, 2019 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants