If you make two concurrent calls to the same session, sess.run(...)
, how are variables concurrently accessed in tensorflow?
Will each call see a snapshot of the variables as of the moment run
was called, consistent throughout the call? Or will they see dynamic updates to the variables and only guarantee atomic updates to each variable?
I'm considering running test set evaluation on a separate CPU thread and want to verify that it's as trivial as running the inference op on a CPU device in parallel.
I'm having troubles figuring out exactly what guarantees are provided that make sessions "thread safe".