Maker History

  • GitHub
    GitHubDifferentiable sign/round/floor for PyTorch
    May 2026
  • 🎉
    Joined Product HuntMay 6th, 2026

Forums

New User

14h ago

GitHub - Differentiable sign/round/floor for PyTorch

PyTorch's sign, round, floor, and argmax break gradients. Existing fixes (STE, Gumbel-Softmax) require rewriting your model. SLL-Core is zero-intrusive: with sll.linearize(): y = torch.sign(x) # now differentiable! loss.backward() Only linearizes inside an ε-band around decision boundaries. Everywhere else stays exactly hard. Zero deployment overhead. pip install sll-core
View more