微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

由于CUDA错误,无法根据Keras模型做出预测

如何解决由于CUDA错误,无法根据Keras模型做出预测

我是Python的新手。我遵循this website作为将来做一些预测的指南。完成所有操作后,图形未显示,并且出现以下错误

>>> boolean = True
>>> fl = 1.2
>>> integer = 100
>>>
>>> sentence = f"Hello variables! {boolean} {fl} {integer}"
>>> sentence
'Hello variables! True 1.2 100'

这是我写的代码

2020-10-09 08:27:09.619051: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-10-09 08:27:09.620905: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2020-10-09 08:27:16.105403: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2020-10-09 08:27:16.107108: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] Failed call to cuInit: UNKNowN ERROR (303)
2020-10-09 08:27:16.110329: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: kwk-tech-05
2020-10-09 08:27:16.110968: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: kwk-tech-05
2020-10-09 08:27:16.111746: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (onednN)to use the following cpu instructions in performance-critical operations:  AVX2
To enable them in other operations,rebuild TensorFlow with the appropriate compiler flags.
2020-10-09 08:27:16.119507: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2624680e450 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-09 08:27:16.120408: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host,Default Version

解决方法

从错误消息中,您似乎没有为图形卡安装CUDA驱动程序。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?