【发布时间】:2020-05-18 21:52:11
【问题描述】:
当我尝试运行 Yolo 检测示例时,我收到了这个错误:
2020-02-02 21:39:00.821721: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
WARNING:tensorflow:From C:\Users\Dominux\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1635: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
2020-02-02 21:39:03.863436: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-02-02 21:39:04.431694: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1555] Found device 0 with properties:
pciBusID: 0000:02:00.0 name: GeForce MX230 computeCapability: 6.1
coreClock: 1.531GHz coreCount: 2 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 44.76GiB/s
2020-02-02 21:39:04.437212: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-02-02 21:39:04.444498: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
2020-02-02 21:39:04.450110: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll
2020-02-02 21:39:04.453997: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll
2020-02-02 21:39:04.459404: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll
2020-02-02 21:39:04.464501: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll
2020-02-02 21:39:04.477818: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2020-02-02 21:39:04.480586: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1697] Adding visible gpu devices: 0
2020-02-02 21:39:09.674559: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-02-02 21:39:09.678508: F tensorflow/stream_executor/lib/statusor.cc:34] Attempting to fetch value instead of handling error
Internal: failed to get device attribute 13 for device 0: CUDA_ERROR_UNKNOWN: unknown error
我的堆栈:
- 赢10,
- Tensoflow 2.1,
- 英特尔酷睿 I5,
- 英伟达 GeForce MX230 2GB,
- 8GD DDR4
我检查了类似的问题,但他们没有解决方案。只是绝望的人... 但是他们只在 TF 1.14 中谈论过这个问题——我没有找到其他的 但是你怎么能注意到我上面的堆栈我已经在使用 TF 2.1
拜托,你能帮帮我吗! 也许我的驱动程序或 CUDA 软件有问题? 有什么想法吗?
【问题讨论】:
-
我的 anaconda 2019.3 被搞砸了(将不再升级,每个包都存在“不一致”问题)。它在这个盒子上使用 GPU(Windows 10、CUDA 10.1、GTX 850M)。我升级到 anaconda 2020.02 tensorflow 2.1,现在我用这个非常简单的命令得到了完全相同的错误: import tensorflow as tf ; sess = tf.compat.v1.Session()。错误后,python 会话关闭。
-
非常简单的 import tensorflow as tf ; tf.device('/device:GPU:0') 将以同样的方式吹掉。报告了 GPU 类型和带宽,因此看起来有些工作正常。
标签: python-3.x tensorflow gpu tensorflow2.0