is_sparse_any#

iskra.sparse.is_sparse_any(x: Tensor) bool[SOURCE]#

Checks if tensor is either in sparse COO or CSR format.

Parameters:

x (Tensor) – Tensor to check.

Returns:

(bool) – Whether tensor is sparse or not.