Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Remove unnecessary call to glob #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/tf_cnn_benchmarks/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def minibatch(self, dataset, subset, use_datasets, cache_data,
if not file_names:
raise ValueError('Found no files in --data_dir matching: {}'
.format(glob_pattern))
ds = tf.data.TFRecordDataset.list_files(file_names)
ds = tf.data.TFRecordDataset.list_files(glob_pattern)
ds = ds.apply(
interleave_ops.parallel_interleave(
tf.data.TFRecordDataset, cycle_length=10))
Expand Down