tf.summary.scalar Tensorflow(r1.4)API--tf.summary.scalar

Tensorflow(r1.4)API--tf.summary.scalar

scalar(name,tensor,collections=None,family=None)

函数参数

  • name:生成节点的名字,也会作为TensorBoard中的系列的名字。
  • tensor:包含一个值的实数Tensor。
  • collection:图的集合键值的可选列表。新的求和op被添加到这个集合中。缺省为[GraphKeys.SUMMARIES]
  • family:可选项;设置时用作求和标签名称的前缀,这影响着TensorBoard所显示的标签名。

函数简介

  • 返回值:一个字符串类型的标量张量,包含一个Summaryprotobuf
  • 返回错误ValueErrortensor有错误的类型或shape。
  • 函数求出的Summary中有一个包含输入tensor的Tensor.proto

猜你喜欢

转载自blog.csdn.net/weixin_42052460/article/details/80715555