MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / skip_mps

Function skip_mps

diffusers/src/diffusers/utils/testing_utils.py:318–320  ·  view source on GitHub ↗

Decorator marking a test to skip if torch_device is 'mps

(test_case)

Source from the content-addressed store, hash-verified

316
317
318def skip_mps(test_case):
319 """Decorator marking a test to skip if torch_device is 'mps'"""
320 return unittest.skipUnless(torch_device != "mps", "test requires non 'mps' device")(test_case)
321
322
323def require_flax(test_case):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected