在 TensorFlow.org上查看 |
在 Google Colab 中运行 |
在 GitHub 上查看源代码
|
下载笔记本
|
概述
使用 TensorFlow Text Summary API,您可以轻松地在 TensorBoard 中记录任意文本并进行查看。这在采样和检查输入数据,或在记录执行元数据或生成的文本方面非常实用。您还可以记录文本形式的诊断数据,这在模型开发过程中可能会有所帮助。
在本教程中,您将尝试 Text Summary API 的一些基本用例。
设置
try:
# %tensorflow_version only exists in Colab.
%tensorflow_version 2.x
except Exception:
pass
# Load the TensorBoard notebook extension.
%load_ext tensorboard
import tensorflow as tf
from datetime
在 TensorFlow.org上查看
在 Google Colab 中运行
在 GitHub 上查看源代码
下载笔记本