number of samples in tensorflow dataset code example
Example: how to know the length of a dataset tensorflow
ds = tf.data.TFRecordDataset(dataset_filenames)
ds_size = sum(1 for _ in ds)
ds = tf.data.TFRecordDataset(dataset_filenames)
ds_size = sum(1 for _ in ds)