Could not satisfy explicit device specification means that you do not have a corresponding device. Do you actually have a CUDA-enabled GPU?
UPDATE: As it turned out in the discussion below, this error also occurs if a specific operation (in this case RandomShuffleQueue ) cannot be performed on the GPU, since it only has a CPU implementation.
If everything is okay with choosing a TensorFlow device for you (in particular, returning to the CPU when there is no GPU implementation), consider setting allow_soft_placement in your configuration, as in this article :
sess = tf.Session(config=tf.ConfigProto( allow_soft_placement=True, log_device_placement=True))
Ishamael
source share