mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
gpu.onnx_providers() trusted gpu_available() which returns True via torch.cuda without checking whether onnxruntime actually has CUDAExecutionProvider compiled in. When onnxruntime (CPU-only) is installed, this caused silent fallback to CPU in every ONNX-based tool. Now verifies onnxruntime.get_available_providers() directly and emits a diagnostic warning when torch sees CUDA but onnxruntime does not. Closes #104