Skip to content

Commit

Permalink
Skip flaky test_autocast_cpu test (#8580)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Aug 10, 2024
1 parent c449221 commit c9936da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,13 @@ def test_autocast(self, aligned, deterministic, x_dtype, rois_dtype):
rois_dtype=rois_dtype,
)

@pytest.mark.skip(reason="1/5000 flaky failure")
@pytest.mark.parametrize("aligned", (True, False))
@pytest.mark.parametrize("deterministic", (True, False))
@pytest.mark.parametrize("x_dtype", (torch.float, torch.bfloat16))
@pytest.mark.parametrize("rois_dtype", (torch.float, torch.bfloat16))
def test_autocast_cpu(self, aligned, deterministic, x_dtype, rois_dtype):

with torch.cpu.amp.autocast():
self.test_forward(
torch.device("cpu"),
Expand Down

0 comments on commit c9936da

Please sign in to comment.