MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / require_onnxruntime

Function require_onnxruntime

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

336
337
338def require_onnxruntime(test_case):
339 """
340 Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
341 """
342 return unittest.skipUnless(is_onnx_available(), "test requires onnxruntime")(test_case)
343
344
345def require_note_seq(test_case):

Callers

nothing calls this directly

Calls 1

is_onnx_availableFunction · 0.85

Tested by

no test coverage detected