-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented snt.BatchNormV2, which differs from snt.BatchNorm in the …
…following ways: * Automatically computes updates to moving statistics by default (i.e. update_ops_collection=None). * Uses moving statistics by default when testing (i.e. test_local_stats=False). * Takes a data_format string (NC/NWC/NCW/NHWC/NCHW/NDHWC/NCDHW) rather than axes; reduces along all non-C axes. * Uses fused batch normalization by default. If the data_format isn't NHWC or NCHW, reshapes the batch internally. * Uses flat variables for the moving statistics, scale, and offset so that they can be shared between different data_formats. PiperOrigin-RevId: 179819339
- Loading branch information
1 parent
b920570
commit 9a547ed
Showing
5 changed files
with
1,293 additions
and
5 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
Oops, something went wrong.