import tensorflow as tf
tfrecord_file="a.tfrecord"
dataset=tf.data.TFRecordDataset(tfrecord_file)
for raw in dataset.take(1):
example=tf.train.Example()
example.ParseFromString(raw_record.numpy())
print(example)
最后
以上就是无情芒果最近收集整理的关于tf2读tfrecord文件的全部内容,更多相关tf2读tfrecord文件内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复