Installing Latest TensorFlow on Windows with CUDA, cudNN & GPU support - Step by Step Tutorial 2022

preview_player
Показать описание
In this video I will show you how to set up and install the latest Tensorflow version with GPU support on Windows 10 & 11. We will require Visual C++, CUDA, CuDNN, as well as the Python libraries using Anaconda.
▶ Step 6: Jupyter Notebook, Environment & TensorFlow/Keras

*I use affiliate links on the products that I recommend. These give me a small portion of the sales price at no cost to you. I appreciate the proceeds and they help me to improve my channel!

Equipments I use for recording the videos:

If you do have any questions with what we covered in this video then feel free to ask in the comment section below & I'll do my best to answer those.

If you enjoy these tutorials & would like to support them then the easiest way is to simply like the video & give it a thumbs up & also it's a huge help to share these videos with anyone who you think would find them useful.

Please consider clicking the SUBSCRIBE button to be notified for future videos & thank you all for watching.

You can find me on:

#tensorflow #gpu #windows #cuda #cudnn
Рекомендации по теме
Комментарии
Автор

FYI, because after tensorflow-2.10, tensorflow will not support GPU on naive-windows instead of WSL2. So the last version is tensorflow-2.10.1.

Remember, you have to install CUDA-11.2 and cudnn-8.9 in your host machine.

Also, you need to install anaconda-navigator, any version is OK.
Then in anaconda-navigator create the virtual environment with Python 3.10.x, you cannot use Python 3.11, because that is the limit for tensorflow-2.10
After that, in your venv-python 3.10 in anaconda prompt:
pip install tensorflow==2.10.1
then you gonna see 'True'

danielsun
Автор

Thanks! Very helpful!
I follow the instructions and it works very well. Confirmed with actual TensorFlow usage. However, due to limitations for Windows native, I specify the version of some packages and software as follows:

- VS Community 2019
- CUDA 11.4
- CuDNN 8.2.4.15
- Python 3.9.7
- TensorFlow 2.7.0

To avoid errors in TensorFlow installation, you may need to install Protobuf==3.20.0 in advance.

MaryadiGeophysicist
Автор

I don't comment often on social media, but I have to give you your "flowers" for this tutorial video. It really helped me, and for that I am thankful.

ayomideoraegbu
Автор

Hi Bhabesh, Thank you so much! I attempted to install Tensorflow on GPU twice and eventually gave up. Recently, I am working on a project where I am training 5370 lstm models on billions of observations and training on CPU is a joke. hence I had to make it work and I spent around 7 hours to figure it out and finally I stumbled on your video and it worked like a charm. You saved my life. Thank you so very much! God Bless you

CrewNDx
Автор

Thanks! Very helpful!
I follow the instructions and it works very well. Confirmed with actual TensorFlow usage. However, due to limitations for Windows native, I specify the version of some packages and software as follows:

- VS Community 2022
- CUDA 11.8.0 [Highest supported version in Windows at the moment]
- CuDNN 8.9.5.30 [Highest supported version in Windows at the moment]
- Python 3.10.13 [Highest supported version in Windows at the moment]
- TensorFlow 2.10.0 [Highest supported version in Windows at the moment]

chantony
Автор

Thank you for your kindness. I just bought a new computer and it has helped me tremendously.

rkvyoiy
Автор

Thank you so much Bhavesh. Worked Flawlessly and enjoyed the whole process ! Cheers

aneeshkalita
Автор

Hello. Everything went correctly. At the last step, when I am checking whether the GPU's are connected, it is returning False. Any suggestions?

kevinsuvarna
Автор

Thank you so much. Best Tutorial in first go my laptop tensorflow is accessing the GPU of my machine. Thank you so much for beautiful lesson 😎

tvharikrishna
Автор

Ty for saving me, now I can train NN so much faster, kudos for the excelent work

juanpineda
Автор

Thank you !!!, such an amazing video to install cuda and CuDNN, it was very helpfull and
it works!!!!

vamc
Автор

Thank you so much Bhavesh bhai it was a great effort and a great help indeed.

akshatbanga
Автор

Unfortunely, it did not work for me, even after using all the same versions. I have an RTX 4090 so I am not sure if that's the issue. I will have to do more research because CPU is not ideal. Thank you for the video because it gives me an introduction of what I may need to eventually do.

PetarLuketina
Автор

I followed every step, but it is not working. Gives FALSE. Please help

ritikrana
Автор

Yo save me from a depression jajajajajaj Thanks a lot!!!

pablodiegoacosta
Автор

After months I was able to get my GPU to run with python 3.10 and tensorflow 2.10.1. I also uninstalled all my CUDA 12 and installed CUDA 11.6 instead (not sure if that helps). Here is my code.

conda create -y --name tf python=3.10
conda activate tf

pip install tensorflow==2.10.1

python
import tensorflow as tf



Thanks to all the troubleshooting in the comments, hope everyone has a nice day.

KienTran-bcdr
Автор

While downloading its saying-> [NVIDIA installer cannot continue
No NVIDIA is detected in your computer
This graphics driver could not find compatible graphics hardware.]

How to fix it

harshal
Автор

What you Actually need!
--> cuda version 11.2
--> cuDNN version compatible with any 11.x version will work.
--> python version 3.10.13
--> tensorflow version 2.10.1 will only work. (pip install tensorflow==2.10.1)
(Anaconda Any latest version will work)
cuda version 11.6 might not work but 11.2 does!

adhikari
Автор

I can now see that TensorFlow is accessing the GPU of my machine. Thank you so much for the beautiful lesson.

rahulmondal
Автор

actually this is the first time that i found an informative video like this, really thank you

minastiktok