From 5c29182f08e1ec8b29e5e6bcb82065daefbba75c Mon Sep 17 00:00:00 2001 From: Mohammed Saad <61880555+Muhammad-saad-2000@users.noreply.github.com> Date: Thu, 8 May 2025 09:25:59 +0300 Subject: [PATCH] A small typo in the python os library usage There is no method called exit() in os. It is named _exit() Source: https://stackoverflow.com/questions/72010825/python-attributeerror-module-os-has-no-attribute-exit --- intel_extension_for_pytorch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intel_extension_for_pytorch/__init__.py b/intel_extension_for_pytorch/__init__.py index 826562117..d9924de88 100644 --- a/intel_extension_for_pytorch/__init__.py +++ b/intel_extension_for_pytorch/__init__.py @@ -33,7 +33,7 @@ + f"{ipex_version}.*, but PyTorch {torch.__version__} is found. " + "Please switch to the matching version and run again." ) - os.exit(127) + os._exit(127) import os