Tensorflow:'module' 对象没有属性 'scalar_summary' [英] Tensorflow: 'module' object has no attribute 'scalar_summary'

查看:27
本文介绍了Tensorflow:'module' 对象没有属性 'scalar_summary'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试运行以下代码来测试我的 TensorBoard,但是,当我运行该程序时,出现错误提示:

I tried to run the following code to test my TensorBoard, however, when I ran the program, there is an error said:

'module' object has no attribute 'scalar_summary'

我想知道如何解决这个问题,谢谢.

I want to know how can I fix this issue, thanks.

以下是系统信息:

  • 操作系统:Ubuntu 16.04 LTS
  • Tensorflow 版本:0.12rc(主)
  • 运行环境:Jupyter Notebook

测试程序和输​​出:

推荐答案

tf.scalar_summary() 函数在 0.12 版本后移到 master 分支中.您现在可以找到它作为 tf.summary.scalar().

The tf.scalar_summary() function was moved in the master branch, after the 0.12 release. You can now find it as tf.summary.scalar().

这篇关于Tensorflow:'module' 对象没有属性 'scalar_summary'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆