[Bug] Fix torch warning of tf32 usage (#29112)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -852,5 +852,6 @@ def init_batch_invariance():
|
|||||||
enable_batch_invariant_mode()
|
enable_batch_invariant_mode()
|
||||||
|
|
||||||
# Disable TF32 for batch invariance - it causes non-deterministic rounding
|
# Disable TF32 for batch invariance - it causes non-deterministic rounding
|
||||||
torch.backends.cuda.matmul.allow_tf32 = False
|
torch.backends.cuda.matmul.fp32_precision = "ieee"
|
||||||
torch.backends.cudnn.allow_tf32 = False
|
torch.backends.cudnn.conv.fp32_precision = "ieee"
|
||||||
|
torch.backends.cudnn.rnn.fp32_precision = "ieee"
|
||||||
|
|||||||
Reference in New Issue
Block a user