SparseCompressedTensorΒΆ

Constructs a sparse tensor in a compressed format (CSR, CSC, BSR, BSC).

Abstract Signature:

SparseCompressedTensor(compressed_indices: Tensor, plain_indices: Tensor, values: Tensor, size: Optional[List[int]], layout: Optional[Any])

PyTorch

API: torch.sparse_compressed_tensor
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Plugin (sparse_compressed_constructor)