The first step is to install a version of TensorFlow that supports GPUs. The official TensorFlow Installation Instruction is your starting point https://www.tensorflow.org/ . Remember that you need to have an environment supporting GPUs either via CUDA or CuDNN.