Skip to content

Commit 19fde78

Browse files
committed
fix Fp32PrecisonGuard
1 parent fe067e7 commit 19fde78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/Context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ struct Fp32PrecisonGuard {
702702
return ;
703703
}
704704
saved_precision = globalContext().float32Precision(target_backend, target_op);
705-
changed = (new_precision == saved_precision);
705+
changed = (new_precision != saved_precision);
706706
if (changed) {
707707
globalContext().setFloat32Precision(target_backend, target_op, new_precision);
708708
}

0 commit comments

Comments
 (0)