Shortcuts

torch.Tensor.is_sparse

Tensor.is_sparse

如果张量使用稀疏COO存储布局,则为True,否则为False