I'm trying to use Tensorflow-GPU but it seems to be still running on the CPU. I have seen this Question on how to install Tensorflow-GPU and everything seems right until I try to verify it by executing
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
When I do that then I get following output:
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 4000308941676664793
, name: "/device:XLA_CPU:0"
device_type: "XLA_CPU"
memory_limit: 17179869184
locality {
}
incarnation: 7883418274751980843
physical_device_desc: "device: XLA_CPU device"
, name: "/device:XLA_GPU:0"
device_type: "XLA_GPU"
memory_limit: 17179869184
locality {
}
incarnation: 13103704949076676658
physical_device_desc: "device: XLA_GPU device"
]
Tensorflow only seems to find my CPU and apparently a XLA_CPU and a XLA_GPU. Do I just have to set the GPU manually or have I done anything wrong? I'm using a NVIDIA GeForce GTX 1050 Ti BTW.