Commit
5 years ago
List (#21164) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/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
Author
Parents
Loading