We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe067e7 commit 19fde78Copy full SHA for 19fde78
aten/src/ATen/Context.h
@@ -702,7 +702,7 @@ struct Fp32PrecisonGuard {
702
return ;
703
}
704
saved_precision = globalContext().float32Precision(target_backend, target_op);
705
- changed = (new_precision == saved_precision);
+ changed = (new_precision != saved_precision);
706
if (changed) {
707
globalContext().setFloat32Precision(target_backend, target_op, new_precision);
708
0 commit comments