MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / skip_mps

Function skip_mps

src/diffusers/utils/testing_utils.py:254–256  ·  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

252
253
254def 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
259def require_flax(test_case):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected