Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing softmax & log_softmax #660

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Optimizing softmax & log_softmax #660

merged 1 commit into from
Apr 4, 2023

Conversation

coreylowman
Copy link
Owner

This does similar things as #652.

It additionally re-uses as much computation as possible. See in code comments for how we do this.

Timings on my CPU for cargo bench --bench softmax

branch fwd bwd
main 1000ms 1000ms
this ~790ms ~770ms

@coreylowman coreylowman merged commit 065db7d into main Apr 4, 2023
@coreylowman coreylowman deleted the softmax-reductions branch April 4, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant