关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
报错 AttributeError:module 'tensorflow' has no attribute 'gfile'
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
1条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
threenewbee 2019-11-09 23:00关注tf最大的问题就是api经常变动,并且不向前兼容,你找人家的程序来运行,最好装和他一样的tf的版本
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?评论 打赏解决 1无用 6举报
微信扫一扫点击复制链接分享
评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- 2024-02-22 22:34祝德胜的博客 尝试了安装tensorflow-io发现没用,后查看环境的tensorflow版本发现是2.0以上,tf.io的用法是1.0版本的用法,最简单的方法,将Tensorflow卸载了,安装1.xx版本。或者在保持tensorflow的最新版本下,将代码改为。
- wxyzpanda的博客 pyinstaller打包报错AttributeError: module 'tensorflow' has no attribute 'gfile’tensorflow 2.x原因解决方法直接运行.py程序成功后,采用pyinstaller打包后的exe运行仍然报错AttributeError: module '...
- 2022-01-09 15:05zhanghm1995的博客 问题描述 在执行下面命令时出现报错: from torch.utils....AttributeError: module 'tensorflow._api.v1.io' has no attribute 'gfile' 问题分析 出现这个问题的根本原因在于pytorch调了Tensorflow,最后由Tenso
- 2020-09-14 09:45NLP蜗牛的博客 Tensorflow 2.0在10月1号已经正式发布,也早就支持Python 3.7 了,tf.gfile 也改成 tf.io.gfile了. 解决方案: graph = tf.Graph() #替换成tf.compat.v1 graph_def = tf.compat.v1.GraphDef() #或者在import中替换 ...
- 2022-02-10 17:17tsy_的博客 tensorboard遇到的Attribute问题
- yscan1的博客 在运用Tensorboard进行可视化时,报错:AttributeError: module 'tensorflow' has no attribute 'flags' 解决方法。
- 2023-05-14 15:42反弹态势的博客 强烈各位程序员使用国外搜索相关错误 很多国内都是复制粘贴 我这也是stack overflow搜到的。替换tf.gfile.GFile为tf.io.gfile.GFile。找到 label_map_util.py。
- 2022-08-30 16:50深度学习设计与实现的博客 解决报错:module 'tensorflow' has no attribute 'gfile';tensorflow 1.X和tensorflow 2.X不匹配的问题。
- 2022-02-28 18:42善良的王小宁的博客 AttributeError: module ‘tensorflow’ has no attribute ‘gfile’ 问题原因: 出现该问题的最可能的原因为版本过高或者过低,导致gfile方法已经不在tensorflow包中了,或者重新封装到其它类中了 解决方法: 以我...
- 2024-06-12 16:38初窺门径的博客 AttributeError: module 'tensorflow' has no attribute '***'报错解决
- 2020-11-25 20:42
使用tensorflow调试过程中报错: Error: Module ‘tensorflow‘ has no attribute ‘gfile‘ error while running tensorf
Errorbot的博客 Error: Module ‘tensorflow’ has no attribute ‘gfile’ error while running tensorflow object detection api tutorial 原因是因为我的tf版本是2.1.2 函数名不对应 解决方法: 将相关的函数名改为: tf.io.... - 2022-03-30 22:21qq_44633685的博客 问题:AttributeError:module ‘tensorflow’ has no attribute ‘gfile’ 解决方案 : 卸掉tensorflow 如果你这个项目不是直接用到tensorflow的 tensorboard,而是用了pytorch包里的tensorboard,例如以下的图片所...
- 2021-09-17 10:48smallTutou的博客 **AttributeError: module ‘tensorflow’ has no attribute ‘gfile’**写自定义目录标题) 欢迎使用Markdown编辑器 你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, ...
- 2023-04-11 16:12安安喜乐的博客 成功解决:AttributeError: module 'tensorflow' has no attribute 'io'
- 没有解决我的问题, 去提问

