fixed typo in speech encoder decoder doc (#25745)

fixed typo in speech encoder decoder blog
This commit is contained in:
Anthony Susevski
2023-08-25 03:20:37 -04:00
committed by GitHub
parent ae320fa53f
commit 8968fface4

View File

@@ -111,7 +111,7 @@ speech inputs) and `labels` (which are the `input_ids` of the encoded target seq
>>> labels = tokenizer(ds[0]["text"], return_tensors="pt").input_ids >>> labels = tokenizer(ds[0]["text"], return_tensors="pt").input_ids
>>> # the forward function automatically creates the correct decoder_input_ids >>> # the forward function automatically creates the correct decoder_input_ids
>>> loss = model(**input_features).loss >>> loss = model(input_values=input_values, labels=labels).loss
>>> loss.backward() >>> loss.backward()
``` ```