mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-07 17:15:29 +00:00
fix: "UserWarning: Unsupported Windows version (11). ONNX Runtime sup… (#19845)
fix: "UserWarning: Unsupported Windows version (11). ONNX Runtime supports Windows 10 and above, only." ### Description Include Windows 11 in the version check. Now, you will not see the warning “Unsupported Windows version (11). ONNX Runtime supports Windows 10 and above, only.” ### Motivation and Context Warning on Windows 11: Only supports systems above Windows 10, which is somewhat strange.
This commit is contained in:
parent
79e50aeef3
commit
7b46b31558
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ def check_distro_info():
|
|||
__my_distro__ = __my_system__
|
||||
__my_distro_ver__ = platform.release().lower()
|
||||
|
||||
if __my_distro_ver__ != "10":
|
||||
if __my_distro_ver__ not in ["10", "11"]:
|
||||
warnings.warn(
|
||||
"Unsupported Windows version (%s). ONNX Runtime supports Windows 10 and above, only."
|
||||
% __my_distro_ver__
|
||||
|
|
|
|||
Loading…
Reference in a new issue