Search code examples
tensorflowqueuemutexdistributedshared

When Distributed workers use shared_queue in distributed tensorflow


When Distributed workers use shared_queue in distributed tensorflow, Is the shared_queue works to mutex exclusively?


Solution

  • TensorFlow queue objects, such as tf.FIFOQueue, are thread-safe. This applies both to multiple users in a single process, and multiple jobs sharing the queue via shared_name in a distributed setting.