首页 > 编程学习 > 回顾本科毕设内容,用惯了PyTorch环境,结果用tensorflow环境一直出错,没错,本篇博客就是记录用tensorflow的错(自用!)

目录

  • 1. 报错 Process finished with exit code -1073740791 (0xC0000409)
  • 2. 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!
  • 3. 报错 Could not load library cudnn_cnn_infer64_8.dll. Error code 193
  • 4. 报错 Resource exhausted: failed to allocate memory
  • 然后还是没有解决。应该就是显存太小了。所以就还是放到AutoDL上跑代码了。

1. 报错 Process finished with exit code -1073740791 (0xC0000409)

  • 报错Process finished with exit code -1073740791 (0xC0000409)
  • 先参考这个链接,使得能打印出报错原因:Process finished with exit code -1073740791 (0xC0000409)解决方法(就是配置一下,打开Emulate terminal in output console,输出控制台中的模拟终端)

在这里插入图片描述

出现了报错2😢

2. 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!

  • 报错Could not locate zlibwapi.dll. Please make sure it is in your library path!
  • 参考链接:tensorflow出现报错: Could not locate zlibwapi.dll或者Could not load library cudnn_cnn_infer64_8.dll.

参考了这个步骤:(下载链接:https://www.dll-files.com/zlibwapi.dll.html)

在这里插入图片描述

出现了报错3😢

评论区还有一个方法,但是没看懂,就没试:

在这里插入图片描述

3. 报错 Could not load library cudnn_cnn_infer64_8.dll. Error code 193

  • 报错 Could not load library cudnn_cnn_infer64_8.dll. Error code 193
  • 参考链接:Could not load library cudnn_cnn_infer64_8.dll. Error code 126

点击进行官方网址,直接定位到了zLibDll的位置:https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#install-zlib-windows

在这里插入图片描述

下面为中文翻译:

在这里插入图片描述

4. 报错 Resource exhausted: failed to allocate memory

  • 报错Resource exhausted: failed to allocate memory
  • 参考链接:tf2.6 OOM:tensorflow/core/framework/op_kernel.cc:1680 Resource exhausted: failed to allocate memory

然后还是没有解决。应该就是显存太小了。所以就还是放到AutoDL上跑代码了。

Copyright © 2010-2022 dgrt.cn 版权所有 |关于我们| 联系方式