简体   繁体   English

为什么 Tensorflow 2.3.0 找不到我的 GPU 卡?

[英]Why cannot Tensorflow 2.3.0 find my GPU card?

All needed software are installed, Graphics card drivers for Gefore RTX 2060, CUDA 10.1, cuDNN 8.0.2.39, Anaconda3, TensorFlow 2.3.0.安装了所有需要的软件,Gefore RTX 2060、CUDA 10.1、cuDNN 8.0.2.39、Anaconda3、TensorFlow 2.3.0的显卡驱动程序。 All according to Nvidias installation guide, making sure all versions work together.所有根据 Nvidias 安装指南,确保所有版本一起工作。

However, I cannot find any GPU device from Jupyter Notebook.但是,我在 Jupyter Notebook 中找不到任何 GPU 设备。 (Jupyter Notebook Code is provided down below) (下面提供了 Jupyter Notebook 代码)

Tensorflow 2.3.0 should automatically have GPU support, according to tensorflow.org.根据 tensorflow.org 的说法,Tensorflow 2.3.0 应该自动支持 GPU。 Which meens no need to install tensoflow-gpu.这意味着不需要安装 tensoflow-gpu。 Right?对?

Your help is much appreciated.非常感谢您的帮助。 Thank you!谢谢!


Underlying hardware and software:底层硬件和软件:

windows 10 (64 bits)视窗 10(64 位)

Geforce RTX 2060 (driver version 442.23) Geforce RTX 2060(驱动程序版本 442.23)

CUDA 10.1 CUDA 10.1

cuDNN 8.0.2.39 cuDNN 8.0.2.39

Anaconda3蟒蛇3

Tensorflow 2.3.0张量流 2.3.0


import tensorflow as tf

import warnings

#check for GPU

if not tf.test.gpu_device_name():
   warnings.warn('No GPU found. Please ensure you have installed TensorFlow correctly')
else:
   print('Default GPU Device: {}'.format(tf.test.gpu_device_name()))


#print TensorFlow version
print('TensorFlow Version: {}'.format(tf.__version__))

output:输出:

<ipython-input-2-d8dd4f5b3689>:10: UserWarning: No GPU found. Please ensure you have installed TensorFlow correctly

TensorFlow Version: 2.3.0

With CUDA 10.1 documentation says you should be using cuDNN v 7.6.5. CUDA 10.1 文档说你应该使用 cuDNN v 7.6.5。 Documentation is here文档在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM