Now, you can type python on your command line and type the following Python command to see if TensorFlow can see your GPU:
import tensorflow as tf tf.Session()
The result should look like the following image:
Congratulations! TensorFlow can work with your GPU now. Our GPU is recognized as GeForce GTX TITAN X with 11.92 GB of memory. In the next section, we will show you the recommended approach to working with multiple versions of TensorFlow and libraries such as OpenCV.