Hardshrink for Sparse Tensors #16956
Labels
feature
A request for a proper, new feature.
module: sparse
Related to torch.sparse
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
馃殌 Feature
RuntimeError: hardshrink is not implemented for type torch.sparse.FloatTensor
Motivation
We are experimenting with sparse neural networks. We want to model the connection between neurons with sparse matrices. At times, if the weights are too small we want to prune connections, i.e. set the element in the sparse matrix to zero via a hardshrink.
cc @vincentqb
The text was updated successfully, but these errors were encountered: