How are the new tf.contrib.summary summaries in TensorFlow evaluated?
This video explains
How are the new tf.contrib.summary summaries in TensorFlow evaluated?
--
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Dreaming in Puzzles
--
Chapters
00:00 Question
02:21 Accepted answer (Score 2)
03:15 Thank you
--
Full question
https://stackoverflow.com/questions/4908...
Question links:
[tf.contrib.summary]: https://www.tensorflow.org/api_docs/pyth...
[tf.summary.merge_all()]: https://www.tensorflow.org/api_docs/pyth...
[tf.contrib.summary.record_summaries_every_n_global_steps]: https://www.tensorflow.org/api_docs/pyth...
[tf.contrib.summary.scalar]: https://www.tensorflow.org/api_docs/pyth...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #tensorflow #tensorboard
How are the new tf.contrib.summary summaries in TensorFlow evaluated?
--
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Dreaming in Puzzles
--
Chapters
00:00 Question
02:21 Accepted answer (Score 2)
03:15 Thank you
--
Full question
https://stackoverflow.com/questions/4908...
Question links:
[tf.contrib.summary]: https://www.tensorflow.org/api_docs/pyth...
[tf.summary.merge_all()]: https://www.tensorflow.org/api_docs/pyth...
[tf.contrib.summary.record_summaries_every_n_global_steps]: https://www.tensorflow.org/api_docs/pyth...
[tf.contrib.summary.scalar]: https://www.tensorflow.org/api_docs/pyth...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #tensorflow #tensorboard
ACCEPTED ANSWER
Score 2
answer moved from edit to self-answer as requested
I just played around with this a little bit, and it seems that if one combines tf.control_dependencies with tf.record_summaries_every_n_global_steps it behaves as expected and the summary only gets recorded every nth step. But if they are run together within a session, such as session.run([train, summs]), the summaries are stored every once in a while, but not exactly every nth step. I tested this with n=2 and with the second approach the summary was often written at odd steps, while with the control dependency approach it was always on an even step.