I am on Eager Mode, and I am trying to plot the evolution of some scalars in TensorBoard. I have managed to do it for one - the loss function - by using:
summary_writer = tf.contrib.summary.create_file_writer(log_dir, flush_millis=10000)
with summary_writer.as_default(), tf.contrib.summary.always_record_summaries():
tf.contrib.summary.scalar("loss", curr_loss)
However, if I add another line of code with
tf.contrib.summary.scalar("phi", phi)
then it does not get recorded (or at least it does not show up in TensorBoard). I couldn't find many references for this, but the ones I did find made me write it like this...
Does anyone know how to do this properly? Thanks!