New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session got stuck after fork #2448
Comments
The in-process session (i.e. |
@mrry Does it mean there is a way to create |
@mavenlin tf.Session.__init__(target='', graph=None, config=None) Here Sad news. |
Version: nightly prebuilt for Python2 w/ GPU (just now)
I'm expecting the following code to print "10.0" 3 times, but session.run got stuck in all forked processes.
Removing the graph/session in master process will solve the problem. So it seems like once there is a session, we cannot use fork?
The problem exists with and without GPU.
NOTE: this code doesn't terminate normally. You'll probably need to manually kill the forked processes after the master exited.
The text was updated successfully, but these errors were encountered: