torch.Tensor.is_coalesced
- Tensor.is_coalesced() → bool
Returns
Trueifselfis a sparse COO tensor that is coalesced,otherwise.
Returns True if self is a sparse COO tensor that is coalesced, otherwise.
See coalesce() and uncoalesced tensors.