"...sox/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "9b5a270438e8c91c49cffe45459ae3c63aea498f"
Commit df523d91 authored by guptapriya's avatar guptapriya
Browse files

undo shuffle change

this is not going to help with current tf.data semantics. so removing it.
parent b9c1d1ca
...@@ -235,10 +235,7 @@ def _read_and_batch_from_files( ...@@ -235,10 +235,7 @@ def _read_and_batch_from_files(
# Remove examples where the input or target length exceeds the maximum length, # Remove examples where the input or target length exceeds the maximum length,
dataset = dataset.filter(lambda x, y: _filter_max_length((x, y), max_length)) dataset = dataset.filter(lambda x, y: _filter_max_length((x, y), max_length))
if shuffle:
dataset = dataset.shuffle(20000)
if static_batch: if static_batch:
dataset = dataset.padded_batch( dataset = dataset.padded_batch(
batch_size // max_length, ([max_length], [max_length]), batch_size // max_length, ([max_length], [max_length]),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment