Decorator marking a test that requires an accelerator with support for the FP16 data type.
(test_case)
| 583 | |
| 584 | |
| 585 | def require_torch_accelerator_with_fp16(test_case): |
| 586 | """Decorator marking a test that requires an accelerator with support for the FP16 data type.""" |
| 587 | return pytest.mark.skipif( |
| 588 | not _is_torch_fp16_available(torch_device), reason="test requires accelerator with fp16 support" |
| 589 | )(test_case) |
| 590 | |
| 591 | |
| 592 | def require_torch_accelerator_with_fp64(test_case): |
nothing calls this directly
no test coverage detected
searching dependent graphs…