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

Function require_timm

diffusers/src/diffusers/utils/testing_utils.py:367–371  ·  view source on GitHub ↗

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

(test_case)

Source from the content-addressed store, hash-verified

365
366
367def require_timm(test_case):
368 """
369 Decorator marking a test that requires timm. These tests are skipped when timm isn't installed.
370 """
371 return unittest.skipUnless(is_timm_available(), "test requires timm")(test_case)
372
373
374def require_peft_version_greater(peft_version):

Callers

nothing calls this directly

Calls 1

is_timm_availableFunction · 0.85

Tested by

no test coverage detected