在 TF1 中,我可以summary_iterator用来读取摘要文件。但是现在,它会抛出警告
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)`
Run Code Online (Sandbox Code Playgroud)
所以我想知道如何使用tf.data.TFRecordDataset(path)读取TF2生成的tfevent文件。