hi
I have come across a few mail threads discussing the same; but not in the exact context which I am looking at:
I tried to run 2 threads, both sharing the same session. One thread ingests data from (say a queue) and calls session.run() to train the model and the other thread runs inferencing using the same session. It seems to run in parallel, but:
1. I am not sure yet (need to verify) if there are thread safety issues (not sure what underlying operations/data structures are for updating model parameters) and if the result returned is correct or not.
2. If it is safe, is there a significant overhead wrt locking and slow down.
3. Are all the model weights updated using one single lock at the end of every training iteration.
Mridul