
python-tensorflow一些错误
m0_58844937
这个作者很懒,什么都没留下…
展开
-
安装了tensorflow 2.x 的情况下使用tensorflow 1.x 方法的办法
python安装了tensorflow2.x版本,但是代码使用的是tensorflow1.x版本,不用安装tensorflow1.x版本,也可以使用tensorflow1.x的方法,解决方案如下: 把整个TensorFlow2.0的调用转换为TensorFlow1.0的调用,无需对单个函数就行修改: # import tensorflow as tf # 2021-11-09 tensorflow2.0 version #2021-11-09 tensorflow 2.0 version us.转载 2022-05-28 11:16:21 · 816 阅读 · 0 评论 -
No module named ‘tensorflow.examples.tutorials‘报错解决办法
出现这个错误的原因是 tensorflow.examples.tutorials 是 tensorflow 1.x 版本的 tensorflow2.x 版本是没有的 在 tensorflow2.x 版本中想用的话需要在tensorflow的安装路径下添加 examples 文件夹 链接:https://pan.baidu.com/s/1LdRMNSD5BA_axjipYQRzDw 提取码:eabz 然后把 tutorials 文件夹放进 examples 文件夹中 运行 f..原创 2022-04-25 21:00:51 · 1537 阅读 · 4 评论