pytorch/torch/masked
Jane Xu 2aa0ba38a4 Make is_sparse a property of MaskedTensor (#110725)
Fixes #104574

Seeing that MaskedTensor is a prototype, the BC breaking nature of this change seems okay?

Locally tested:
<img width="1372" alt="image" src="https://github.com/pytorch/pytorch/assets/31798555/239e61ba-e0b9-4909-8c7a-0ce3869d7375">

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110725
Approved by: https://github.com/cpuhrsch
2023-10-09 22:35:38 +00:00
..
maskedtensor Make is_sparse a property of MaskedTensor (#110725) 2023-10-09 22:35:38 +00:00
__init__.py [maskedtensor] port torch/_masked into torch/masked (#85515) 2022-09-26 23:41:13 +00:00
_docs.py [BE] Enable ruff's UP rules and autoformat nn/ mps/ and torch/ (#105436) 2023-07-21 07:38:46 +00:00
_ops.py [BE] Enable ruff's UP rules and autoformat nn/ mps/ and torch/ (#105436) 2023-07-21 07:38:46 +00:00