forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inductor] Do variance calculation in opmath type (pytorch#115181)
Fixes pytorch#114903 Previously large split variance reductions stored the intermediates as float16 precision, which may lead to overflow as the intermediate result is unnormalized. In pytorch#114903 we see two different `num_split` decisions made based on the hardware capabilities, one of which has large enough intermediates to cause overflows. Pull Request resolved: pytorch#115181 Approved by: https://github.com/shunting314
- Loading branch information
1 parent
95de4f5
commit 42390a0
Showing
2 changed files
with
38 additions
and
14 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