fixed typo in speech encoder decoder doc (#25745)
fixed typo in speech encoder decoder blog
This commit is contained in:
@@ -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()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user