Skip to content

Commit 8f31d26

Browse files
cyxlilychunyuan-w
andauthored
Fix os exit issue (#3893)
Make os exit correctly. Signed-off-by: Cui, Lily <lily.cui@intel.com> Co-authored-by: Chunyuan WU <chunyuan.wu@intel.com>
1 parent 085b8a2 commit 8f31d26

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)