Skip to content

Commit e948fca

Browse files
committed
Skip flaky test_autocast_cpu test
1 parent 0d80848 commit e948fca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_ops.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ def test_autocast(self, aligned, deterministic, x_dtype, rois_dtype):
512512
@pytest.mark.parametrize("x_dtype", (torch.float, torch.bfloat16))
513513
@pytest.mark.parametrize("rois_dtype", (torch.float, torch.bfloat16))
514514
def test_autocast_cpu(self, aligned, deterministic, x_dtype, rois_dtype):
515+
if aligned and x_dtype == torch.bfloat16:
516+
pytest.skip("1/5000 flaky failure")
517+
515518
with torch.cpu.amp.autocast():
516519
self.test_forward(
517520
torch.device("cpu"),

0 commit comments

Comments
 (0)