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

Function require_quanto

tests/testing_utils.py:727–731  ·  view source on GitHub ↗

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

(test_case)

Source from the content-addressed store, hash-verified

725
726
727def require_quanto(test_case):
728 """
729 Decorator marking a test that requires quanto. These tests are skipped when quanto isn't installed.
730 """
731 return pytest.mark.skipif(not is_optimum_quanto_available(), reason="test requires quanto")(test_case)
732
733
734def require_accelerate(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…