Decorator marking a test that requires timm. These tests are skipped when timm isn't installed.
(test_case)
| 365 | |
| 366 | |
| 367 | def require_timm(test_case): |
| 368 | """ |
| 369 | Decorator marking a test that requires timm. These tests are skipped when timm isn't installed. |
| 370 | """ |
| 371 | return unittest.skipUnless(is_timm_available(), "test requires timm")(test_case) |
| 372 | |
| 373 | |
| 374 | def require_peft_version_greater(peft_version): |
nothing calls this directly
no test coverage detected