Skip to content

fix(device): isolate ONNX provider probing#1390

Closed
xy200303 wants to merge 1 commit into
CVHub520:mainfrom
xy200303:fix/safe-device-detection
Closed

fix(device): isolate ONNX provider probing#1390
xy200303 wants to merge 1 commit into
CVHub520:mainfrom
xy200303:fix/safe-device-detection

Conversation

@xy200303

Copy link
Copy Markdown
  • I have read and agree to the CLA.

Summary

  • move ONNX Runtime provider probing into a hidden child command instead of importing it in the main process
  • fall back to CPU cleanly when provider probing times out, crashes, or returns invalid output
  • add regression coverage for successful probes, failures, timeouts, invalid payloads, and provider caching

Verification

  • pytest -q tests/test_device_manager.py
  • python -c "...module._probe_onnx_providers(timeout=3)..." (confirmed the probe returns safely in this Windows environment)

Notes

@CVHub520 CVHub520 closed this Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants