-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add faster
tanh
implementation(s) (#345)
* tanh_fast, and friends * rm some lines * Revert "improve relu, leakyrelyu, and add InplaceableThunk" This reverts commit e6befa1. * switch to new tanh_new from Remez.jl * better Float64 version with polynomial * better coeff, better cutoff * translate to sigmoid, add tests * change sigmoid implementation, just fastmath of basic one * comments * test bounds * bad rebase + docstr * update coeff * don't say < 2 [skip ci] * restrict to Float64 * Update src/activations.jl Co-authored-by: Carlo Lucibello <[email protected]> Co-authored-by: Carlo Lucibello <[email protected]>
- Loading branch information
1 parent
df0b067
commit 37093c7
Showing
2 changed files
with
186 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37093c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
37093c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/48390
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: