MCPcopy Index your code
hub / github.com/huggingface/diffusers / require_accelerate

Function require_accelerate

tests/testing_utils.py:734–738  ·  view source on GitHub ↗

Decorator marking a test that requires accelerate. These tests are skipped when accelerate isn't installed.

(test_case)

Source from the content-addressed store, hash-verified

732
733
734def require_accelerate(test_case):
735 """
736 Decorator marking a test that requires accelerate. These tests are skipped when accelerate isn't installed.
737 """
738 return pytest.mark.skipif(not is_accelerate_available(), reason="test requires accelerate")(test_case)
739
740
741def require_flashpack(test_case):

Callers

nothing calls this directly

Calls 1

is_accelerate_availableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…