Created
July 26, 2017 20:32
-
-
Save kashefy/571b5960dfd8a891e8b527220776acbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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