MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / require_onnxruntime

Function require_onnxruntime

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

272
273
274def require_onnxruntime(test_case):
275 """
276 Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
277 """
278 return unittest.skipUnless(is_onnx_available(), "test requires onnxruntime")(test_case)
279
280
281def require_note_seq(test_case):

Callers

nothing calls this directly

Calls 1

is_onnx_availableFunction · 0.85

Tested by

no test coverage detected