Rate this Page

torch.Tensor.is_coalesced#

Tensor.is_coalesced()bool#

ReturnsTrue ifself is asparse COO tensor that is coalesced,False otherwise.

Warning

Throws an error ifself is not a sparse COO tensor.

Seecoalesce() anduncoalesced tensors.