torch-sparse · PyPI
https://pypi.org/project/torch-sparsetorch-sparse 0.6.12. pip install torch-sparse. Copy PIP instructions. Latest version. Released: Sep 8, 2021. PyTorch Extension Library of Optimized Autograd Sparse Matrix Operations. Project description. Project details. Release history.
TORCH.SPARSE - 知乎 - 知乎专栏
https://zhuanlan.zhihu.com/p/768908082、 torch.sparse.mm ( mat1, mat2) [SOURCE] Performs a matrix multiplication of the sparse matrix mat1 and dense matrix mat2. Similar to torch.mm (), If mat1 is a ( n × m) tensor, mat2 is a ( m × p) tensor, out will be a ( n × p) dense tensor. mat1 need to havesparse_dim = 2. This function also supports backward for both matrices.