Skip to content

Commit

Permalink
Add AirIO test for WMT.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 576573832
  • Loading branch information
texasmichelle authored and t5-copybara committed Oct 25, 2023
1 parent ba20e5e commit 3a74f06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions t5x/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1834,10 +1834,7 @@ def get_vocabulary(
raise ValueError(
f'No vocabularies found for AirIO task/mixture {mixture_or_task}'
)
all_vocabularies = list(vocab_map.values())
feature = seqio.Feature(vocabulary=all_vocabularies[0])
# TODO(b/307361073): Handle multimodal.
features = {'inputs': feature, 'targets': feature}
features = {k: seqio.Feature(vocabulary=v) for k, v in vocab_map.items()}
elif isinstance(cfg.mixture_or_task_name, seqio.DatasetProviderBase):
mixture_or_task = cfg.mixture_or_task_name
features = mixture_or_task.output_features
Expand Down

0 comments on commit 3a74f06

Please sign in to comment.