-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Closed
Labels
module: boolean tensormodule: dlpackmodule: docsRelated to our documentation, both in docs/ and docblocksRelated to our documentation, both in docs/ and docblockstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Bug
torch.utils.dlpack.to_dlpack
no longer works for Boolean Tensor.
To Reproduce
torch.utils.dlpack.to_dlpack(torch.BoolTensor([False, True])) # Bool type is not supported by dlpack
Expected behavior
Should work.
Environment
Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).
You can get the script and run it with:
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
- PyTorch Version (e.g., 1.0): 1.10 RC and nightly
- OS (e.g., Linux): Linux
- How you installed PyTorch (
conda
,pip
, source): pip - Build command you used (if compiling from source):
- Python version: 3.8.3
- CUDA/cuDNN version:
- GPU models and configuration:
- Any other relevant information:
Additional context
According to dmlc/dgl#3406 the error is raised after #57110. I was wondering what the reason was behind removing boolean support?
This is blocking DGL's patch release with PyTorch 1.10 since we rely on DLPack to interact with PyTorch tensors in multiple places.
cc @brianjo @mruberry @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser
Metadata
Metadata
Assignees
Labels
module: boolean tensormodule: dlpackmodule: docsRelated to our documentation, both in docs/ and docblocksRelated to our documentation, both in docs/ and docblockstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module