如何解决由于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 举报,一经查实,本站将立刻删除。