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

Function require_peft_backend

diffusers/src/diffusers/utils/testing_utils.py:359–364  ·  view source on GitHub ↗

Decorator marking a test that requires PEFT backend, this would require some specific versions of PEFT and transformers.

(test_case)

Source from the content-addressed store, hash-verified

357
358
359def require_peft_backend(test_case):
360 """
361 Decorator marking a test that requires PEFT backend, this would require some specific versions of PEFT and
362 transformers.
363 """
364 return unittest.skipUnless(USE_PEFT_BACKEND, "test requires PEFT backend")(test_case)
365
366
367def require_timm(test_case):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected