xxxxxxxxxx
# to install tensorflow with gpu (you have to download cuda & cudnn as well)
# to create a new env -->
conda create -n tf-gpu tensorflow-gpu
conda activate tf-gpu
# install in existing env -->
conda install tensorflow-gpu
# check if it is working
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"