install gpu tensorflow code example
Example 1: Tensorflow GPU Installation conda
conda create --name tf_gpu
activate tf_gpu
conda install tensorflow-gpu
Example 2: gpu training tensorflow
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))