Join GitHub today
Segfault when importing TensorFlow after Ray. #2159
import ray import tensorflow # This line segfaults.
TensorFlow version 1.8.0.
Searching over commits, the issue was introduced in 225608e.
Note that this seems to make it impossible to use actors which have a dependency on tensorflow. Even if the imports are ordered correctly, when ray unpickles the actor class it will import tensorflow automatically, causing the agent to die.
Here's a minimal example: