TensorFlow不同版本引起的错误

报错:

tf.scalar_summary(l.op.name + ' (raw)', l)

AttributeError: 'module' object has no attribute 'scalar_summary'

解决:

tf.scalar_summary('images', images)改为:tf.summary.scalar('images', images)

tf.image_summary('images', images)改为:tf.summary.image('images', images)

2.AttributeError: 'module' object has no attribute 'histogram_summary'

修改为:tf.summary.histogram

3.tf.merge_all_summaries()

改为:summary_op = tf.summaries.merge_all()

4.AttributeError: 'module' object has no attribute 'SummaryWriter':tf.train.SummaryWriter

改为tf.summary.FileWriter

'module' object has no attribute 'scalar_summary'相关推荐

  1. Tensorflow报错:AttributeError: 'module' object has no attribute 'scalar_summary'

    报错: tf.scalar_summary(l.op.name + ' (raw)', l) AttributeError: 'module' object has no attribute 'sca ...

  2. tensorflow出现如下错误:AttributeError: ‘module’ object has no attribute ‘merge_all_summaries’

    tensorflow版本问题,导致函数的变化,summary使用如下变化机制: AttributeError: 'module' object has no attribute 'merge_all_ ...

  3. Python 报错解决:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

    早上升级完pip,后报错如下: -> # pip install --upgrade pwntools /usr/local/lib/python2.7/dist-packages/pip/_v ...

  4. 成功解决AttributeError: module 'tensorflow' has no attribute 'scalar_summary'

    成功解决AttributeError: module 'tensorflow' has no attribute 'scalar_summary' 目录 解决问题 解决思路 解决方法 解决问题 Att ...

  5. AttributeError: 'module' object has no attribute 'text_format'

    最近在学习 faster rcnn ,本来环境已经配置好,已经跑完自己的程序,运行良好,后来安装了tensorflow,然后重新使用 faster rcnn 进行训练的时候居然出错了,我很纳闷,期间没 ...

  6. Python AttributeError: 'module' object has no attribute 'posseg'

    AttributeError: 'module' object has no attribute 'posseg' 遇到问题: 如果 a 是个目录, b 是个 b.py 文件, func 是 b.py ...

  7. pytorch版本问题:AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'

    用pytorch加载训练好的模型的时候遇到了如下的问题: AttributeError: 'module' object has no attribute '_rebuild_tensor_v2' 到 ...

  8. AttributeError: 'module' object has no attribute 'get_frontal_face_detector'

    AttributeError: 'module' object has no attribute 'get_frontal_face_detector' 报错原因: 命名为的文件将遮盖dlib具有所需 ...

  9. Python3.X识别混合编码,顺便解决“AttributeError: 'module' object has no attribute 'urlopen'”

    原本是想利用chardet模块识别一个混合编码网页的编码类型(以百度为例),然而运行脚本发现python3.X中出现"AttributeError: 'module' object has ...

最新文章

  1. BZOJ 2133 切割(树形DP,树上背包)大概是本题全网第一篇题解 >_<【BZOJ 修复工程】
  2. sqlite换成mysql_从SQLITE的数据转到MYSQL
  3. git上传大于100M的文件
  4. 树莓派摄像头 C++ OpenCV YoloV3 实现实时目标检测
  5. java反射 动态调用_java反射拼接方法名动态执行方法
  6. 先排序,再限定记录数,然后计算指定字段的总和
  7. 有史以来最强的 5G 入门科普!
  8. Android 解锁app,应用锁「AppLock」v3.3.0 for Android 完美解锁版
  9. Web Worker——js的多线程,实现统计博客园总阅读量
  10. prolog 从list中取出一个_二、redis中Hash、Set、SortedSet应用场景
  11. EPLAN 2.7 WIN 10 X64安装说明
  12. 调用DllRegisterServer进行COM组件的注册
  13. Quartus-II之D触发器
  14. 通过笔记本设置wifi共享
  15. 网络安全学习笔记Day01—Day10
  16. 微信朋友圈技术实现设想
  17. 基于c语言图像灰度拉伸算法实现,c语言实现图像灰度均衡化
  18. 求n的阶乘及1~n的阶乘之和
  19. 小米、维沃等知名企业启用“.CN”“.中国”域名
  20. 人脸识别界面设计Android,人脸识别系统的设计及Android平台实现

热门文章

  1. java 方法不同_java同一个类不同方法间的同步
  2. pandas 替换 某列大于_pandas数据分析总结大全(入门加进阶)
  3. ubuntu mysql5.6 编译安装_Ubuntu14.04编译安装mysql5.6.26
  4. mysql session变量_mysql 系统变量和session变量
  5. mega_[MEGA DEAL] 2020年完整的Java Master Class Bundle(96%)
  6. Java盗刷_一个依赖搞定 Spring Boot 反爬虫,防止接口盗刷!
  7. linux nice值_linux系统管理之交互式企业站点(连载)
  8. cf英文名字格式好看的_cf英文名字大全_Michael、
  9. java webdriver page object_Selenium+PageObject+Java实现测试用例
  10. oracle数据库登录失败触发器,oracle数据库登录、DDL触发器的应用