Decorator marking a test to skip if torch_device is 'mps
(test_case)
| 252 | |
| 253 | |
| 254 | def skip_mps(test_case): |
| 255 | """Decorator marking a test to skip if torch_device is 'mps'""" |
| 256 | return unittest.skipUnless(torch_device != "mps", "test requires non 'mps' device")(test_case) |
| 257 | |
| 258 | |
| 259 | def require_flax(test_case): |
nothing calls this directly
no outgoing calls
no test coverage detected