Skip to content

Commit f604bce

Browse files
committed
enable
1 parent 2882ee4 commit f604bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/models/test_modeling_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
require_torch_2,
4949
require_torch_accelerator_with_training,
5050
require_torch_gpu,
51+
require_torch_accelerator,
5152
require_torch_multi_gpu,
5253
run_test_in_subprocess,
5354
torch_device,
@@ -405,7 +406,7 @@ def test_set_xformers_attn_processor_for_determinism(self):
405406
assert torch.allclose(output, output_3, atol=self.base_precision)
406407
assert torch.allclose(output_2, output_3, atol=self.base_precision)
407408

408-
@require_torch_gpu
409+
@require_torch_accelerator
409410
def test_set_attn_processor_for_determinism(self):
410411
if self.uses_custom_attn_processor:
411412
return

0 commit comments

Comments
 (0)