mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Fix the error message in run_t5_mlm_flax.py (#19282)
This commit is contained in:
parent
e3f028f3af
commit
e150c4e2fe
@ -349,7 +349,7 @@ class FlaxDataCollatorForT5MLM:
|
||||
if batch["input_ids"].shape[-1] != self.input_length:
|
||||
raise ValueError(
|
||||
f"`input_ids` are incorrectly preprocessed. `input_ids` length is {batch['input_ids'].shape[-1]}, but"
|
||||
f" should be {self.target_length}."
|
||||
f" should be {self.input_length}."
|
||||
)
|
||||
|
||||
if batch["labels"].shape[-1] != self.target_length:
|
||||
|
Loading…
Reference in New Issue
Block a user