Skip to content

Commit 92791ab

Browse files
tianleiwufs-eire
authored andcommitted
Add windows server to supported OS (#26275)
Add windows server to supported list to avoid confusing users: Marketing Name | Internal Version | platform.release().lower() | Release Year | Based on -- | -- | -- | -- | -- Windows Server 2025 | 10.0.26100+ | "2025server" | 2024–2025 | Windows 11 (24H2) Windows Server 2022 | 10.0.20348 | "2022server" | 2021 | Windows 10 (21H2) Windows Server 2019 | 10.0.17763 | "2019server" | 2018 | Windows 10 (1809) Windows Server 2016 | 10.0.14393 | "2016server" | 2016 | Windows 10 (1607)
1 parent efc9e12 commit 92791ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/python/onnxruntime_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def check_distro_info():
2323
__my_distro__ = __my_system__
2424
__my_distro_ver__ = platform.release().lower()
2525

26-
if __my_distro_ver__ not in ["10", "11"]:
26+
if __my_distro_ver__ not in ["10", "11", "2016server", "2019server", "2022server", "2025server"]:
2727
warnings.warn(
28-
f"Unsupported Windows version ({__my_distro_ver__}). ONNX Runtime supports Windows 10 and above, only."
28+
f"Unsupported Windows version ({__my_distro_ver__}). ONNX Runtime supports Windows 10 and above, or Windows Server 2016 and above."
2929
)
3030
elif __my_system__ == "linux":
3131
"""Although the 'platform' python module for getting Distro information works well on standard OS images

0 commit comments

Comments
 (0)