csr_tensor#
- iskra.sparse.csr_tensor(crow_indices: Tensor, col_indices: Tensor, values: Tensor, size: Size | list[int] | tuple[int, ...] | None = None, *, dtype: dtype | None = None, device: device | None = None, requires_grad: bool = False) SparseTensor[SOURCE]#
Constructs a CSR
SparseTensorfrom compressed-row data.Important
This function is a thin wrapper around
SparseTensor.from_csr().