Open taha-yassine opened 1 week ago
Thanks so much! 🤗 Can you add a unit test for this to tests/maths.test.js? One normal case and one case where the unstable version will break? 🔥
Done :)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
(ignore failing tests; related to something else)
A numerically stable implementation of
log_softmax()
. It's similar to the current implementation ofsoftmax()
and is what's used in PyTorch and SciPy too.