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

Function require_onnxruntime

tests/testing_utils.py:676–680  ·  view source on GitHub ↗

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

(test_case)

Source from the content-addressed store, hash-verified

674
675
676def require_onnxruntime(test_case):
677 """
678 Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
679 """
680 return pytest.mark.skipif(not is_onnx_available(), reason="test requires onnxruntime")(test_case)
681
682
683def require_note_seq(test_case):

Callers

nothing calls this directly

Calls 1

is_onnx_availableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…