Rate this Page

torch.Tensor.is_sparse#

Tensor.is_sparse#

Is True if the Tensor uses sparse COO storage layout, False otherwise.