In TF1, i could use summary_iterator to read summary files. But now, it will throw a warning
WARNING:tensorflow: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and:
`tf.data.TFRecordDataset(path)`
So i'm wondering how to use tf.data.TFRecordDataset(path) to read tfevent files generated by TF2.