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 — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/sparse.htmlConstruction¶. A sparse COO tensor can be constructed by providing the two tensors of indices and values, as well as the size of the sparse tensor (when it cannot be inferred from the indices and values tensors) to a function torch.sparse_coo_tensor(). Suppose we want to define a sparse tensor with the entry 3 at location (0, 2), entry 4 at location (1, 0), and entry 5 at location (1, 2).
torch-sparse · PyPI
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.