【发布时间】:2021-10-27 19:04:13
【问题描述】:
您好,我已经使用tensorflow 和keras 有一段时间了。我使用这个包来构建神经网络。当我在 CPU 上工作时,我习惯于收到这样的消息:
您的 CPU 支持未编译此 TensorFlow 二进制文件以使用的指令:AVX AVX2
但现在,更新软件包后,我收到以下警告:
2021-08-27 18:48:09.068353:W tensorflow/stream_executor/platform/default/dso_loader.cc:64] 无法加载动态库“cudart64_110.dll”; dlerror: 找不到 cudart64_110.dll
2021-08-27 18:48:09.069154: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] 如果您的机器上没有设置 GPU,请忽略上面的 cudart dlerror。
2021-08-27 18:48:46.432183:W tensorflow/stream_executor/platform/default/dso_loader.cc:64] 无法加载动态库“nvcuda.dll”; dlerror: 找不到 nvcuda.dll
2021-08-27 18:48:46.432971:W tensorflow/stream_executor/cuda/cuda_driver.cc:269] 调用 cuInit 失败:未知错误 (303)
2021-08-27 18:48:46.433910: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] 检索主机的 CUDA 诊断信息:LAPTOP-RR404INI
2021-08-27 18:48:46.434837:I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] 主机名:LAPTOP-RR404INI
2021-08-27 18:48:46.436222: I tensorflow/core/platform/cpu_feature_guard.cc:142] 这个 TensorFlow 二进制文件使用 oneAPI 深度神经网络库 (oneDNN) 进行了优化,以在性能方面使用以下 CPU 指令 -关键操作:AVX AVX2
要在其他操作中启用它们,请使用适当的编译器标志重新构建 TensorFlow。
Tensorflow 按预期工作,所以如果这些警告是一个问题,我现在想知道如何解决?
我已尝试通过使用问题Installation of Keras and TensorFlow in R #1136 中的以下代码再次卸载并安装所有内容来解决此问题,但我还是收到了警告:
install.packages("remotes")
remotes::install_github(paste0("rstudio/", c("reticulate", "tensorflow", "keras")))
reticulate::install_miniconda()
keras::install_keras()
【问题讨论】:
标签: r tensorflow keras