tensorflow统计tfrecord中的样本数量

在用tf处理数据时,通常都会保存为tfrecord格式的数据,有时候会想查看该tfrecord格式的数据样本多少个。那么如何作呢? 参考以下代码: import tensorflow as tf tf_records_filenames = 'xxx.tfrecords' c = 0 for record in tf.python_io.tf_record_iterator(fn): c
相关文章
相关标签/搜索