(test_case)
| 315 | """Decorator marking a test that requires torch with a specific version or greater.""" |
| 316 | |
| 317 | def decorator(test_case): |
| 318 | correct_torch_version = is_torch_available() and is_torch_version(">=", torch_version) |
| 319 | return unittest.skipUnless( |
| 320 | correct_torch_version, f"test requires torch with the version greater than or equal to {torch_version}" |
| 321 | )(test_case) |
| 322 | |
| 323 | return decorator |
| 324 |
nothing calls this directly
no test coverage detected
searching dependent graphs…