Install Tensorflow with GPU support on windows

preview_player
Показать описание
To install TensorFlow with CUDA support, follow these step-by-step instructions.

TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows.

Download and install cuda and cudnn - Match TensorFlow version with the appropriate CUDA and cuDNN versions

We are downloading tensorflow 2.10 which required cuda 11.2 and cudnn 8.1

pip install tensorflow==2.10.0

How to Confirm GPU Usage?

import tensorflow as tf

# Check if TensorFlow is using the GPU
print("TensorFlow is using the GPU!")

# Get list of available GPUs
print("Available GPUs:", gpus)

# Get details of each GPU
for gpu in gpus:
print("GPU Details:", details)
else:
print("TensorFlow is using the CPU.")

Output:
TensorFlow is using the GPU!
Available GPUs: [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
GPU Details: {'device_name': 'NVIDIA GeForce RTX 3090', 'compute_capability': (8, 6)}

#tensorflow #computervision #cuda #nvidia
Рекомендации по теме
Комментарии
Автор

Hello ma'am first of all thank you so much for uploading such a helpful video, but ma'am I have a question you have installed different versions of Cuda and cuDNN which is not compatible with Tensorflow 2.10 can you explain please?

AltafHussain-bjxz
Автор

Maa’m you probably saved me a week’s work. I wasted some 2 days on this. God bless you 🙏🙏🙏❤️❤️❤️❤️

priyabratasinha
Автор

Ma’am your videos help me a lot in my current profession. Thank you, please keep sharing your videos🙏🙏

Sunil-ezhx
Автор

Does it works on jupyter notebook??
please reply

avishekbasyal
Автор

i am having windows 11, and for cuda 11.2 it is not showing option for win 11, what to do ?

Rith-qdjr
Автор

Nvidia Installer failed!
Just NSight Compute Installed successfully, others; was not installed

Trying to install CUDA 12.9.
My GPU RTX 3050, but I keep on having this problem
Need your kind support please!


## Steps tried:
1) antivirus off
2) run as administrator
3) Computer Restart and tried reinstalling
4) Cancelled installation of visual studio integration

nvcc --version output:
'nvcc' is not recognized as an internal or external command,
operable program or batch file.

abhijitbhandari
Автор

While training cnn kernel is crashing. What should I do Ma'am

shivaybhargava
Автор

hi i have just followed all the steps in this video but still tensorflow can't detect gpu but pytorch can detect it what is the issue in here...
please help me sort it out...

ShivaSubhanS
Автор

Thank you very much from your virtual student.

tilkesh
Автор

Can you please create a video for wsl to install latest Tensorflow version.☺

mysterioustwist
Автор

Mam, maine pori video follow ki but jb mai model train krra hu toh meri ram full hojari ....i9, 4070, 16GB

kaifz
Автор

Mam, you installed cuda toolkit 12.4 with current 8.7 cudnn version, but in the video from tensorflowa archives, you saying that insastall cuda 11.2 and cudnn 8.1, I got a confusion over here, and I don't know how to fix this, also, how to resolve this issue.

_pRoXiMuS
Автор

don't we have to setup the visual studio community? or it is pre-installed in windows 11.

sheikhfarhan
Автор

How to work with jupyeter notebook ? in this process?

NaimulIslam_Ai_Engineer
Автор

cuda 11.2 is not for windows 11, could you suggest some alternative ?

vaibhav
Автор

I love your videos, very educational, can you teach how to install tensorflow for cuda12.4 please?

mr-s
Автор

mam could you make a video on How to uninstall all the previous CUDA version and cudnn version from the windows machine.

rvaakashsharma
Автор

maam python version best suitable for Deep learning task and using GPU resources

bilaln
Автор

My laptop doesn't have the gpu computing toolkit folder, is it normal and can I download the network one. PS note for everyone: if you face an error, downgrade numpy to version 1.26.4, it will execute the script correctly

jayanspaliwal
Автор

maam, am i supposed to install 12.6 or 11.2?

thevipulvaibhaw