diff options
author | Iurii Zdebskyi <iuriiz@fb.com> | 2019-02-19 08:17:49 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-02-19 08:22:13 -0800 |
commit | 444039c47bb997f698c2bd9481c8649188038c51 (patch) | |
tree | 81b1a1ceed39f2d0eaa08d176b83c2faf753079f /.circleci/config.yml | |
parent | e81878e0a9445c2b7674fdfea7da3287ec24f343 (diff) | |
download | pytorch-444039c47bb997f698c2bd9481c8649188038c51.tar.gz pytorch-444039c47bb997f698c2bd9481c8649188038c51.tar.bz2 pytorch-444039c47bb997f698c2bd9481c8649188038c51.zip |
Bool tensor. Part 0: Boolean storage implementation (#16810)
Summary:
This is the first commit from a series of planned changes in order to add boolean tensors to PyTorch. The whole plan looks like this:
0. Storage Implementation (this change)
1. Tensor Creation.
2. Tensor Conversions.
3. Tensor Indexing.
4. Tensor Operations.
5. Back compatibility related changes.
This feature was requested by the community:
https://github.com/pytorch/pytorch/issues/4764
https://github.com/pytorch/pytorch/issues/4219
https://github.com/pytorch/pytorch/issues/4288
**Change**:
Added boolean type to the Storage class for CPU and CUDA backends.
**Tested via**:
1. unit tests
2. running this:
-> import torch
-> torch.BoolStorage
<class 'torch.BoolStorage'>
-> torch.cuda.BoolStorage
<class 'torch.cuda.BoolStorage'>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16810
Reviewed By: gchanan
Differential Revision: D14087246
Pulled By: izdeby
fbshipit-source-id: 042642ced1cb0fd1bb6bff05f9ca871a5c54ee5e
Diffstat (limited to '.circleci/config.yml')
0 files changed, 0 insertions, 0 deletions