How do I use TensorFlow GPU version instead of CPU version in Python 3.6 x64?
import tensorflow as tf
Pytho
The 'new' way to install tensorflow GPU if you have Nvidia, is with Anaconda. Works on Windows too. With 1 line.
conda create --name tf_gpu tensorflow-gpu
This is a shortcut for 3 commands, which you can execute separately if you want or if you already have a conda environment and do not need to create one.
Create an anaconda environment conda create --name tf_gpu
Activate the environment activate tf_gpu
Install tensorflow-GPU conda install tensorflow-gpu
You can use the conda environment.