test_ort_cuda_warning and test_ort_dml_warning segfault when no gpu availaible
问题描述 / Problem Description
Building with onnxruntime with cuda, but no GPU in the system. These two tests segfault.
运行环境 / Runtime Environment
Nix, as in https://github.com/NixOS/nixpkgs/pull/382920
复现代码 / Reproduction Code
n/a
可能解决方案 / Possible solutions
In the tests, skip the code if onnxruntime shows no GPU available.
Are you sure you didn't mention the wrong repository?
Are you sure you didn't mention the wrong repository?
Yes the tests that fail are here https://github.com/RapidAI/RapidOCR/blob/6fce7c841cf55b724db5a1756c3f58fe24e05b29/python/tests/test_ort.py#L46 https://github.com/RapidAI/RapidOCR/blob/6fce7c841cf55b724db5a1756c3f58fe24e05b29/python/tests/test_ort.py#L38
In the latest code, I had removed those two unit testings