-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vectorize variance calculation and input scaling in InstanceNormaliza…
…tion InstanceNormalization has three steps: 1. Compute channel mean 2. Compute channel variance 3. Shift and scale result to normalize the mean and variance, and then apply a per-channel scale and bias Previously only step 1 was vectorized. This vectorizes steps 2 and 3 as well. Tested using the wav2vec example on x64, this made InstanceNormalization ~3x faster (~26ms -> ~8ms per run).
- Loading branch information
1 parent
aa81094
commit 28675eb
Showing
1 changed file
with
10 additions
and
13 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