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.
2 parents 87920e8 + 3017d88 commit 4e93efcCopy full SHA for 4e93efc
1 file changed
tests/models/testing_utils/training.py
@@ -210,7 +210,9 @@ def test_mixed_precision_training(self):
210
211
# Test with bfloat16
212
if torch.device(torch_device).type != "cpu":
213
- if torch.device(torch_device).type == "cuda" and not torch.cuda.is_bf16_supported():
+ if torch.device(torch_device).type == "cuda" and not torch.cuda.is_bf16_supported(
214
+ including_emulation=False
215
+ ):
216
pytest.skip("bfloat16 training is not supported on this GPU.")
217
else:
218
model.zero_grad()
0 commit comments