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

Function require_flashpack

tests/testing_utils.py:741–745  ·  view source on GitHub ↗

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

(test_case)

Source from the content-addressed store, hash-verified

739
740
741def require_flashpack(test_case):
742 """
743 Decorator marking a test that requires flashpack. These tests are skipped when flashpack isn't installed.
744 """
745 return pytest.mark.skipif(not is_flashpack_available(), reason="test requires flashpack")(test_case)
746
747
748def require_peft_version_greater(peft_version):

Callers

nothing calls this directly

Calls 1

is_flashpack_availableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…