Skip to content

Commit

Permalink
fix parameterized.expand order
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Dec 7, 2023
1 parent 9e133c9 commit 76a1e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_modeling_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3130,9 +3130,9 @@ def test_flash_attn_2_generate_padding_right(self):

self.assertTrue(torch.allclose(out, out_fa))

@parameterized.expand([("float16",), ("bfloat16",), ("float32",)])
@require_torch_sdpa
@slow
@parameterized.expand([("float16",), ("bfloat16",), ("float32",)])
def test_eager_matches_sdpa_inference(self, torch_dtype: str):
if not self.all_model_classes[0]._supports_sdpa:
self.skipTest(f"{self.all_model_classes[0].__name__} does not support SDPA")
Expand Down

0 comments on commit 76a1e17

Please sign in to comment.