torch.Tensor.to_sparse_bsc
- Tensor.to_sparse_bsc(blocksize, dense_dim) → Tensor
Convert a tensor to a block sparse column (BSC) storage format of given blocksize. If the
selfis strided, then the number of dense dimensions could be specified, and a hybrid BSC tensor will be created, with dense_dim dense dimensions and self.dim() - 2 - dense_dim batch dimension.- Parameters