Download diffusers/tests/test_pipelines_onnx_common.py from fantaxy/tango2: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/fantaxy/tango2/resolve/main/diffusers/tests/test_pipelines_onnx_common.py
- Command line
-
hf download hf://spaces/fantaxy/tango2/diffusers/tests/test_pipelines_onnx_common.py
-
curl -L -o test_pipelines_onnx_common.py https://huggingface.co/spaces/fantaxy/tango2/resolve/main/diffusers/tests/test_pipelines_onnx_common.py
367 Bytes
| from diffusers.utils.testing_utils import require_onnxruntime | |
| class OnnxPipelineTesterMixin: | |
| """ | |
| This mixin is designed to be used with unittest.TestCase classes. | |
| It provides a set of common tests for each ONNXRuntime pipeline, e.g. saving and loading the pipeline, | |
| equivalence of dict and tuple outputs, etc. | |
| """ | |
| pass | |