-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize CPU LayerNormalization 6x with -ffast-math and lifting branc…
…hes (#689) * Optimize LayerNormalization with -ffast-math and lifting branches * LayerNormalization changelog gprof: Now 1.65 30.11 0.57 void marian::cpu::LayerNormalizationImpl<1, 1, true>(float*, float const*, float const*, float const*, float, int, int) Baseline 9.08 22.31 3.49 marian::cpu::LayerNormalization(IntrusivePtr<marian::TensorBase>, IntrusivePtr<marian::TensorBase>, IntrusivePtr<marian::TensorBase>, IntrusivePtr<marian::TensorBase>, float) That's 3.49 seconds to 0.57 second * LayerNormalization: longer comments, @frankseide-style if
- Loading branch information
Showing
3 changed files
with
107 additions
and
17 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
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