TensorFlow - Importing data from a TensorBoard TFEvent file?

前端 未结 7 1732
刺人心
刺人心 2020-12-04 08:50

I\'ve run several training sessions with different graphs in TensorFlow. The summaries I set up show interesting results in the training and validation. Now, I\'d like to ta

7条回答
  •  执笔经年
    2020-12-04 09:26

    Here is a complete example for obtaining values from a scalar. You can see the message specification for the Event protobuf message here

    import tensorflow as tf
    
    
    for event in tf.train.summary_iterator('runs/easy_name/events.out.tfevents.1521590363.DESKTOP-43A62TM'):
        for value in event.summary.value:
            print(value.tag)
            if value.HasField('simple_value'):
                print(value.simple_value)
    

提交回复
热议问题