Skip to content
Snippets Groups Projects
Commit cc704aa1 authored by Shawn Presser's avatar Shawn Presser
Browse files

Use tf.io.gfile.glob

parent 8ae5333f
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class TFRecordDataset:
# List tfrecords files and inspect their shapes.
assert os.path.isdir(self.tfrecord_local_dir)
tfr_files = sorted(glob.glob(os.path.join(self.tfrecord_local_dir, '*.tfrecords')))
tfr_files = sorted(tf.io.gfile.glob(os.path.join(self.tfrecord_local_dir, '*.tfrecords')))
assert len(tfr_files) >= 1
tfr_shapes = []
for tfr_file in tfr_files:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment