-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(layers): Fix incorrect masked mean/variance in BatchNormalization…
… layer (#20815) * fix(layers): Fix incorrect masked mean/variance in BatchNormalization layer Update masked moments calculation to properly account for broadcast dimensions when summing mask weights. Added test to verify broadcast mask handling produces zero-centered outputs. * change: skip test for OpenVINO * fix: Fix OpenVINO compatibility in BatchNormalization layer ops - Convert tuple reduction axes to list format for compatibility with OpenVINO's constant op - Remove OpenVINO skip decorator after fixing axis format * fix: Normalize reduction_axes to list during build Avoid repeated type checks and conversions during forward pass. * fix: Double type-casting
- Loading branch information
1 parent
3e52ce9
commit 871ad7a
Showing
2 changed files
with
27 additions
and
12 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