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

[Feature]: faster safetanh transform via C++ bindings #289

Merged
merged 3 commits into from
Jul 18, 2022
Merged

Conversation

vmoens
Copy link
Contributor

@vmoens vmoens commented Jul 18, 2022

Description

Implements a simple C++ function to compute a safe tanh transform.

Motivation and Context

Safe-tanh takes a considerable amount of time during training. Getting this down by a bit can bring a significant training speedup.

Types of changes

Our new function decreases the time it takes to execute safe tanh by 30% on cpu.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 18, 2022
@vmoens vmoens added the enhancement New feature or request label Jul 18, 2022
@vmoens vmoens merged commit 201ac26 into main Jul 18, 2022
@vmoens vmoens deleted the safe_tanh_cpp branch July 18, 2022 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants