Skip to content

Commit

Permalink
Skip sequence_length information logging for SeqIO deterministic task…
Browse files Browse the repository at this point in the history
…s when the information is missing.

PiperOrigin-RevId: 555868265
  • Loading branch information
chulayuth-a authored and SeqIO committed Aug 17, 2023
1 parent 6594a3c commit a0bb43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seqio/dataset_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ def _normalize(l):
else:

def _estimated_mean_length(task, key):
if key not in sequence_length:
if sequence_length is None or key not in sequence_length:
return 0
if (
task.supports_caching
Expand Down

0 comments on commit a0bb43b

Please sign in to comment.