Rate this Page

torch.Tensor.coalesce#

Tensor.coalesce()Tensor#

Returns a coalesced copy ofself ifself is anuncoalesced tensor.

Returnsself ifself is a coalesced tensor.

Warning

Throws an error ifself is not a sparse COO tensor.