tensorflow - tf.summary.tensor_summary 如何使用?

标签 tensorflow

TensorFlow 提供了 tf.summary.tensor_summary()函数似乎是 tf.summary.scalar() 的多维变体:

tf.summary.tensor_summary(name, tensor, summary_description=None, collections=None)

我认为它对于总结每个类的推断概率很有用......有点像

op_summary = tf.summary.tensor_summary('classes', some_tensor)
# ...
summary = sess.run(op_summary)
writer.add_summary(summary)

但是 TensorBoard 似乎根本没有提供显示这些摘要的方法。它们应该如何使用?

最佳答案

我也无法让它工作。该功能似乎仍在开发中。请观看 TensorFlow 开发峰会上的这段视频,该视频指出tensor_summary 仍在开发中(从 9:17 开始):https://youtu.be/eBbEDRsCmv4?t=9m17s 。它可能会得到更好的定义,并且将来应该提供示例。

关于tensorflow - tf.summary.tensor_summary 如何使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42329059/

相关文章:

python - 使用神经网络学习分类值的分布

tensorflow - tensorflow 中事件文件的数量和名称?

python - Keras 损失没有减少

将 Keras 模型转换为 C

python - Tensorflow - 值错误 : Output tensors to a Model must be the output of a TensorFlow `Layer`

graph - 如何使用张量板制作散点图 - tensorflow

python - 在 Tensorflow 中使用具有多个 channel 的 extract_image_patches

machine-learning - 有没有一种简单的方法可以在 TensorFlow 中实现 Optimizer.Maximize() 函数

python - 使用 TF 2.0 将 saving_model 转换为 TFLite 模型

python - 使用循环网络的电影评论分类