Closed lucataglia closed 6 years ago
About the multi-threaded context, I don't know enough to comment. But this could be similar to an issue I filed some time back (#56)
@mandar2812 It seem that using tf.createWith(graph = Graph()){...}
fix the problem. Now I try to do some more tests before confirming that my problem is completely gone. In the meanwhile thank you !!
@lucaRadicalbit @mandar2812 Thanks for suggesting that Mandar! I was going to suggest the same thing. :)
@lucaRadicalbit @eaplatanios Happy to help 😊
I fail to restore the TensorFlow graph in a multi-threading application. I have more the one thread running and I need to restore a different session for each thread, but I can not pass the Saver from the outside so every thread need to call
tf.Saver.fromMetaGraphDef(mgf)
Here an example code that simulate my situation:
Here the error:
I don't get if I am doing something wrong or this operation with the Scala API in a multi-thread environment it isn't already supported. Is there maybe e method to get a Saver instance that has been already created by some other thread ?