你好我一直在使用tensorflow
and 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:我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:我tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169]检索主机的CUDA诊断信息:LAPTOP-RR404INI
2021-08-27 18:48:46.434837:我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 指令: AVX2
要在其他操作中启用它们,请使用适当的编译器标志重建 TensorFlow。
Tensorflow 按预期工作,所以我现在想知道这些警告是否是一个问题,如果是,我该如何修复它?
我尝试使用问题中的以下代码卸载并再次安装所有内容来修复该问题在 R 中安装 Keras 和 TensorFlow #1136但无论如何我都会收到警告:
install.packages("remotes")
remotes::install_github(paste0("rstudio/", c("reticulate", "tensorflow", "keras")))
reticulate::install_miniconda()
keras::install_keras()