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

Function require_onnxruntime

src/diffusers/utils/testing_utils.py:485–489  ·  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

483
484
485def require_onnxruntime(test_case):
486 """
487 Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
488 """
489 return unittest.skipUnless(is_onnx_available(), "test requires onnxruntime")(test_case)
490
491
492def require_note_seq(test_case):

Callers

nothing calls this directly

Calls 1

is_onnx_availableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…