Decorator marking a test that requires accelerate. These tests are skipped when accelerate isn't installed.
(test_case)
| 732 | |
| 733 | |
| 734 | def require_accelerate(test_case): |
| 735 | """ |
| 736 | Decorator marking a test that requires accelerate. These tests are skipped when accelerate isn't installed. |
| 737 | """ |
| 738 | return pytest.mark.skipif(not is_accelerate_available(), reason="test requires accelerate")(test_case) |
| 739 | |
| 740 | |
| 741 | def require_flashpack(test_case): |
nothing calls this directly
no test coverage detected
searching dependent graphs…