Decorator marking a test that requires NPU (in PyTorch).
(test_case)
| 986 | |
| 987 | |
| 988 | def require_torch_npu(test_case): |
| 989 | """ |
| 990 | Decorator marking a test that requires NPU (in PyTorch). |
| 991 | """ |
| 992 | return unittest.skipUnless(is_torch_npu_available(), "test requires PyTorch NPU")(test_case) |
| 993 | |
| 994 | |
| 995 | def require_torch_multi_npu(test_case): |
nothing calls this directly
no test coverage detected