Skip to content

Commit 5c29182

Browse files
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
1 parent a6a7bd4 commit 5c29182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intel_extension_for_pytorch/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
+ f"{ipex_version}.*, but PyTorch {torch.__version__} is found. "
3434
+ "Please switch to the matching version and run again."
3535
)
36-
os.exit(127)
36+
os._exit(127)
3737

3838

3939
import os

0 commit comments

Comments
 (0)