Rate this Page

torch.Tensor.values#

Tensor.values()Tensor#

Return the values tensor of asparse COO tensor.

Warning

Throws an error ifself is not a sparse COO tensor.

See alsoTensor.indices().

Note

This method can only be called on a coalesced sparse tensor. SeeTensor.coalesce() for details.