简体   繁体   English

Tensorflow 导入非常慢,因为它正在寻找“cudart64_110.dll”。 我没有 gpu。有 cpu-only 版本吗?

[英]Tensorflow import is very slow because it's looking for "cudart64_110.dll". I don't have a gpu. Is there a cpu-only version?

When I run a script that imports tensorflow (2.8) it spend 10+ seconds printing the message below before running my script.当我运行导入 tensorflow (2.8) 的脚本时,它会在运行我的脚本之前花费 10 多秒打印下面的消息。 I don't have a gpu.我没有 gpu。

From what I can find on here, v2 upwards combines cpu/gpu versions.从我在这里可以找到的内容来看,v2 向上结合了 cpu/gpu 版本。 Is it possible to stop the gpu check?是否可以停止 gpu 支票?

2022-02-04 10:15:46.628917: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-02-04 10:15:47.068570: 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.

Yes, You can surpass these warnings (W) or informational (I) messages using below code:是的,您可以使用以下代码超越这些warnings (W) 或informational (I) 消息:

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

You can also check this link for more details on TensorFlow installation.您还可以查看链接以获取有关TensorFlow安装的更多详细信息。

暂无
暂无

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

相关问题 无法加载动态库“cudart64_110.dll”; dlerror: cudart64_110.dll 未找到,我有 tensorflow.version==2.6.0 - Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found ,and i have tensorflow.version==2.6.0 Tensorflow:找不到 cudart64_110.dll - Tensorflow: cudart64_110.dll not found 无法加载 cudart64_110.dll tensorflow 错误 - could not load cudart64_110.dll tensorflow error 如何修复由 Pycharm 中的 Tensorflow 引起的 cudart64_110.dll 错误? - How can I fix cudart64_110.dll error which caused from Tensorflow in Pycharm? tensorflow:无法加载动态库“cudart64_110.dll”; dlerror: 未找到 cudart64_110.dll - tensorflow: Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 无法在 tensorflow 仅 CPU 安装上加载动态库“cudart64_101.dll” - Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation W tensorflow/stream_executor/platform/default/dso_loader.cc:64] 无法加载动态库 'cudart64_110.dll'; dlerror: cudart64_110.dll 未找到 - W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 无法使用张量流 gpu 安装加载库 cudart64_110.dll - Could not load library cudart64_110.dll with tensor flow gpu installation 在 python 3.8 和 tensorflow 2.5.0 使用 python 加载 cudart64_110.dll 时出错 - Error loading cudart64_110.dll with python 3.8 and tensorflow 2.5.0 using conda on Windows Tensorflow 每次导入时都会发出警告 - 'cudart64_101.dll not found'。 有没有办法摆脱这个警告? - Tensorflow Warning every time I import it - 'cudart64_101.dll not found'. Is there a way to get rid of only this warning?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM