Changes

Jump to navigation Jump to search
m
Logging to Tensorboard from within your container
</syntaxhighlight>
We will not cover the details of Tensorboard logging here, see the example code in "application/src/tf_mnist.py" for some initial ideas. Make sure to provide the correct log directory when creating the writer instance for the logs. I suggest to create a new subdirectory for each run of the program and hold the PVC, so that you can compare different runs, like this:
 
<syntaxhighlight lang="python">
from datetime import datetime
 
tb_base_directory = "/mnt/tensorboard/"
now = datetime.now()
subdir = now.strftime("%Y%m%d-%H%M%S")
tb_out_directory = tb_base_directory + subdir
writer = tf.summary.FileWriter( tb_out_directory, sess.graph )
</syntaxhighlight>
 
Otherwise, please refer to some of the excellent online tutorials on Tensorboard, e.g.
[https://itnext.io/how-to-use-tensorboard-5d82f8654496 this here].
[[Category:Tutorials]]

Navigation menu