This could be a trivial question. The problem is, I only have 1 GPU device. To test if tensorflow
is using GPU as the accelerator, like discussed in this question, I run:
import tensorflow as tf
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
and similar to that answer, I have such device mapping information appeared twice:
Device mapping:
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: Tesla K80, pci bus id: 0000:00:04.0, compute capability: 3.7
2018-11-01 22:00:25.678626: I tensorflow/core/common_runtime/direct_session.cc:291] Device mapping:
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: Tesla K80, pci bus id: 0000:00:04.0, compute capability: 3.7
So what makes this happen?