You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subprocess starts succeed, however, the program is stuck and does not process any request. How could I make it work please. When I use simple process or multithread, the program also works.
Environment:
tensorflow 1.2
tornado 4.4.1
python 3.5.2
The text was updated successfully, but these errors were encountered:
You may only use fork-safe libraries before entering multi-process mode (by calling http_server.start(N)). Many complex libraries are not fork-safe. You must either move the initialization of tensorflow.Session() after the HTTP server is started (in which case you will have 10 sessions, one in each process), or you can create a separate tensorflow server and connect to it using the target argument of tensorflow.Session (sessions with a target are fork-safe). The latter option is described in tensorflow/tensorflow#2448
I try to write a simple frame for tornado + tensorflow server, code is as following:
subprocess starts succeed, however, the program is stuck and does not process any request. How could I make it work please. When I use simple process or multithread, the program also works.
Environment:
The text was updated successfully, but these errors were encountered: