torch.Tensor.to_sparse_csc
- Tensor.to_sparse_csc() → Tensor
Convert a tensor to compressed column storage (CSC) format. Except for strided tensors, only works with 2D tensors. If the
selfis strided, then the number of dense dimensions could be specified, and a hybrid CSC tensor will be created, with dense_dim dense dimensions and self.dim() - 2 - dense_dim batch dimension.- Parameters: