Skip to content Skip to sidebar Skip to footer

How To Read Data From Tensorflow 2 Summary Writer

I'm having trouble with reading data from a tensorflow summary writer. I'm using the writer from the example on the tensorflow website: https://www.tensorflow.org/tensorboard/migr

Solution 1:

You need to convert the tensor values in the event accumulator, stored as TensorProto messages, into arrays, which you can do with tf.make_ndarray:

pd.DataFrame([(w, s, tf.make_ndarray(t)) for w, s, t in event_acc.Tensors('my_metric')],
             columns=['wall_time', 'step', 'tensor'])

Solution 2:

To avoid a subset of steps, I would suggest:

event_acc = EventAccumulator("/tmp/mylogs/eager", size_guidance={'tensors': 0})

enter image description here

Post a Comment for "How To Read Data From Tensorflow 2 Summary Writer"