tf.summary.merge_all

tf.summary.merge_all(
    key=tf.GraphKeys.SUMMARIES,
    scope=None,
    name=None
)

合并默认图中收集的所有摘要。

参数:

  • key: GraphKey用于收集摘要,默认为GraphKeys.SUMMARIES。
  • scope: 使用re.match筛选摘要操作的可选范围。

返回值:

  • 如果没有收集摘要,则返回None。否则返回字符串类型的标量张量,其中包含合并后的序列化摘要协议缓冲区。

异常:

  • RuntimeError: If called with eager execution enabled.

Eager Compatibility 

Not compatible with eager execution. To write TensorBoard summaries under eager execution, use tf.contrib.summary instead.

原链接:https://tensorflow.google.cn/versions/r1.14/api_docs/python/tf/summary/merge_all

猜你喜欢

转载自blog.csdn.net/weixin_36670529/article/details/91449244