Closed silgon closed 6 years ago
sess.run
is thread safe.
Thanks for the answer. I think I can start looking for more information based on that. I also found this answer explaining that before version 10 it wasn't. I will dig more into it in order to understand why and how do you do gpu thread-safe.
This is more a question than an issue. I was looking at the code, and I realized that you use the functions like
train
,predict_p_and_v
,predict_p
and some others from fileNetworkVP.py
. All this functions use the methodsess.run
, my question is: how do you know that this code runs without a problem? I ask because as far as I can see, there's nothing controlling thatsess.run
is not called while anothersess.run
is in use. I thought that I needed to use acoordinator
to do something like that. If you have a reference just to understand, that'd be great. Thanks!