tf.summary.FileWriter()



Tf Summary Filewriter



https://tensorflow.google.cn/api_docs/python/tf/summary/FileWriter

で定義 tensorflow/python/summary/writer/writer.py



ガイドを参照してください: サマリー操作>サマリーの生成

書き込みSummaryイベントファイルへのプロトコルバッファ。 #サマリープロトコルバッファ書き込みイベントファイル




FileWriterクラスは、指定されたディレクトリにイベントファイルを作成し、それに要約とイベントを追加するメカニズムを提供します。このクラスは、ファイルの内容を非同期的に更新します。これにより、トレーニングプログラムは、トレーニングを遅くすることなく、メソッドを呼び出してトレーニングループから直接ファイルにデータを追加できます。

TensorBoardはファイルからグラフを選択してグラフィカルに表示するため、作成したグラフをインタラクティブに探索できます。通常、グラフを起動したセッションからグラフを渡します。

...create a graph...
# Launch the graph in a session.
sess
= tf.Session()
# Create a summary writer, add the 'graph' to the event file.
writer
= tf.summary.FileWriter(<some-directory>, sess.graph)