Skip to content
Snippets Groups Projects
Unverified Commit 96b7cf8e authored by Shenghang Tsai's avatar Shenghang Tsai Committed by GitHub
Browse files

import oneflow in custom_exit (#4736)


Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent 5170ffae
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ __original_exit__ = sys.exit
def custom_exit(returncode):
if returncode != 0:
import oneflow
oneflow._oneflow_internal.MasterSendAbort()
__original_exit__(returncode)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment