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