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

Function require_bitsandbytes

src/diffusers/utils/testing_utils.py:529–533  ·  view source on GitHub ↗

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

(test_case)

Source from the content-addressed store, hash-verified

527
528
529def require_bitsandbytes(test_case):
530 """
531 Decorator marking a test that requires bitsandbytes. These tests are skipped when bitsandbytes isn't installed.
532 """
533 return unittest.skipUnless(is_bitsandbytes_available(), "test requires bitsandbytes")(test_case)
534
535
536def require_quanto(test_case):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…