This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly import Caffe BatchNorm (#6176)
* Correctly import Caffe BatchNorm * Compensate for cudnn epsilon shift by changing the variance Cudnn requires BatchNorm variance eps to be bigger than 1e-05 (CUDNN_BN_MIN_EPSILON). Before this commit eps values were clipped to 1.1e-05, thus introducing a small numerical discrepancy in evaluation. This discrepancy is avoided here by compensating from this shift in the actual variance value. * Improved epsilon shift compensation and comments
- Loading branch information
Showing
2 changed files
with
22 additions
and
7 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