From 504ba6f2ca4ec79f4c6c986d6bad2b6667b8436f Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Tue, 3 Dec 2019 15:20:26 -0800 Subject: [PATCH] Remove a warning --- onnxruntime/python/onnxruntime_validation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/onnxruntime/python/onnxruntime_validation.py b/onnxruntime/python/onnxruntime_validation.py index 7350fe6655..0cb88d3505 100644 --- a/onnxruntime/python/onnxruntime_validation.py +++ b/onnxruntime/python/onnxruntime_validation.py @@ -18,9 +18,6 @@ def check_distro_info(): __OS_RELEASE_FILE__ = '/etc/os-release' __LSB_RELEASE_FILE__ = '/etc/lsb-release' - if __my_arch__ != '64bit': - warnings.warn('Unsupported architecture (%s). ONNX Runtime supports 64bit architecture, only.' % __my_arch__) - if __my_system__ == 'windows': __my_distro__ = __my_system__ __my_distro_ver__ = platform.release().lower() @@ -28,6 +25,8 @@ def check_distro_info(): if __my_distro_ver__ != '10': warnings.warn('Unsupported Windows version (%s). ONNX Runtime supports Windows 10 and above, only.' % __my_distro_ver__) elif __my_system__ == 'linux': + if __my_arch__ != '64bit': + warnings.warn('Unsupported architecture (%s). ONNX Runtime supports 64bit architecture, only.' % __my_arch__) ''' Although the 'platform' python module for getting Distro information works well on standard OS images running on real hardware, it is not acurate when running on Azure VMs, Git Bash, Cygwin, etc. The returned values for release and version are unpredictable for virtualized or emulated environments.