Categories
Tensorflow

Solve GPU not detected in Tensorflow 2

When you running this code, your Nvidia GPU is not detected

python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

[]

The solution is

pip install "tensorflow[and-cuda]==2.15.1"

Leave a Reply

Your email address will not be published. Required fields are marked *