Skip to content

Instantly share code, notes, and snippets.

@kashefy
Created July 26, 2017 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kashefy/571b5960dfd8a891e8b527220776acbf to your computer and use it in GitHub Desktop.
Save kashefy/571b5960dfd8a891e8b527220776acbf to your computer and use it in GitHub Desktop.
import tensorflow as tf
# adapted from https://stackoverflow.com/a/40029298/2466336
if __name__ == '__main__':
path_to_events_file = '/home/kashefy/models/ae/log_simple_stats/2017-07-18_12-22-45/events.out.tfevents.1500373527.hobbes'
tag = 'mlp_layer-1/loss_classification_1'
# with open(fpath, "r") as f:
#
#
# x = [v.simple_value for e in tf.train.summary_iterator(path_to_events_file) for v in e.summary.value if v.tag == 'layer-1/Mean_1' ]
for e in tf.train.summary_iterator(path_to_events_file):
ev = tf.Event()
for v in e.summary.value:
if v.tag == tag:
print(v.tag, e.wall_time, e.step)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment