Tensorflow and Multiprocessing: Passing Sessions
You can’t use Python multiprocessing to pass a TensorFlow Session into a multiprocessing.Pool in the straightfoward way because the Session object can’t be pickled (it’s fundamentally not serializable because it may manage GPU memory and state like that). I’d suggest parallelizing the code using actors, which are essentially the parallel computing analog of “objects” and … Read more