tensorflow gpu 2.0alpha0出现错误

tensorflow gpu 2.0alpha0出现错误,tensorflow,tensorflow2.0,Tensorflow,Tensorflow2.0,我已经在Windows10中安装了tensorflow gpu 2.0alpha0、cudatoolkit 10.0.130和cudnn 7.5 TensorFlow 2.0在CPU上运行良好,但在GPU上运行时会遇到错误 错误消息如下所示: 2019-04-02 23:47:38.646661: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this Tensor

我已经在Windows10中安装了tensorflow gpu 2.0alpha0、cudatoolkit 10.0.130和cudnn 7.5

TensorFlow 2.0在CPU上运行良好,但在GPU上运行时会遇到错误

错误消息如下所示:

2019-04-02 23:47:38.646661: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-04-02 23:47:38.666653: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2019-04-02 23:47:38.666842: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
我认为主要问题是“无法打开库'nvcuda.dll'”


但是,我已经安装了最新的NVIDIA驱动程序(版本419.67),可以在C:\Windows\System32\nvcuda.dll中找到“nvcuda.dll”。

Tensorflow中的此方法失败:

    port::StatusOr<void*> GetDsoHandle(const string& name, const string& version) {
        auto filename = port::Env::Default()->FormatLibraryFileName(name, version);
        void* dso_handle;
        port::Status status =
          port::Env::Default()->LoadLibrary(filename.c_str(), &dso_handle);
        if (status.ok()) {
            LOG(INFO) << "Successfully opened dynamic library " << filename;
            return dso_handle;
    }
port::StatusOr GetDsoHandle(常量字符串和名称、常量字符串和版本){
自动文件名=端口::环境::默认值()->FormatLibraryFileName(名称、版本);
无效*dso_手柄;
端口::状态=
port::Env::Default()->LoadLibrary(filename.c_str(),&dso_handle);
if(status.ok()){

日志(信息)谢谢你的回答,我试过了,但仍然不起作用。同样的错误也存在。你安装了cuDNN吗?你设置了路径集path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin;%path%set path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\extras\CUPTI\libx64;%path%set path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include;%PATH%SET PATH=C:\tools\CUDA\bin;%PATH%