This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
def validate_dataset(filenames, reader_opts=None): | |
""" | |
Attempt to iterate over every record in the supplied iterable of TFRecord filenames | |
:param filenames: iterable of filenames to read | |
:param reader_opts: (optional) tf.python_io.TFRecordOptions to use when constructing the record iterator | |
""" | |
i = 0 |