Skip to content

Commit

Permalink
Remove shuffling from tfreader as it is already shuffled before,
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Jul 30, 2024
1 parent 4e88768 commit fb1c1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlio_benchmark/reader/tf_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _parse_image(self, serialized):
@dlp.log
def next(self):
logging.debug(f"{utcnow()} Reading {len(self._file_list)} files thread {self.thread_index} rank {self._args.my_rank}")
filenames = tf.data.Dataset.list_files(self._file_list, shuffle=True)
filenames = tf.data.Dataset.list_files(self._file_list, shuffle=False)
# sharding in the file list if we have enought files.
if (len(self._file_list) >= self._args.comm_size):
filenames = filenames.shard(num_shards=self._args.comm_size, index=self._args.my_rank)
Expand Down

0 comments on commit fb1c1a6

Please sign in to comment.