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

Function require_flax

src/diffusers/utils/testing_utils.py:470–474  ·  view source on GitHub ↗

Decorator marking a test that requires JAX & Flax. These tests are skipped when one / both are not installed

(test_case)

Source from the content-addressed store, hash-verified

468
469
470def require_flax(test_case):
471 """
472 Decorator marking a test that requires JAX & Flax. These tests are skipped when one / both are not installed
473 """
474 return unittest.skipUnless(is_flax_available(), "test requires JAX & Flax")(test_case)
475
476
477def require_compel(test_case):

Callers

nothing calls this directly

Calls 1

is_flax_availableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…