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

Fix single client using same glog file (#5535)

* fix single client env reinit

* addnote
parent b092835f
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,12 @@ from oneflow.compatible.single_client.python.framework import env_util
oneflow._oneflow_internal.DestroyEnv()
import time
# sleep to prevent glog raising "File exists"
time.sleep(1)
del time
oneflow._oneflow_internal.SetIsMultiClient(False)
env_util.init_default_physical_env()
session_context.OpenDefaultSession(
......
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