Skip to content

Commit

Permalink
fix: "UserWarning: Unsupported Windows version (11). ONNX Runtime sup… (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
enximi committed Mar 15, 2024
1 parent 79e50ae commit 7b46b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/python/onnxruntime_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 7b46b31

Please sign in to comment.