https://www.youtube.com/watch?v=03NSQ7xQIWQ
to run this code locally i used anaconda for easy installation of CUDA and cuDNN and i follow this steps:
1.- download and install anaconda from: https://www.anaconda.com/distribution/
2.- open anaconda prompt:
3.- create a new environment and activate it:
conda create -n tf-gpu conda activate tf-gpu
4.- install a python kernel:
pip install ipykernel python -m ipykernel install --user --name tf-gpu --display-name "tf-gpu"
5.- install tensorflow-gpu (it can take a few minutes):
conda install tensorflow-gpu