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()
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -129,4 +129,4 @@ speech inputs) and `labels` (which are the `input_ids` of the encoded target seq
|
|||||||
|
|
||||||
[[autodoc]] FlaxSpeechEncoderDecoderModel
|
[[autodoc]] FlaxSpeechEncoderDecoderModel
|
||||||
- __call__
|
- __call__
|
||||||
- from_encoder_decoder_pretrained
|
- from_encoder_decoder_pretrained
|
||||||
|
|||||||
Reference in New Issue
Block a user