Skip to content

Commit

Permalink
fixed typo in speech encoder decoder doc (#25745)
Browse files Browse the repository at this point in the history
fixed typo in speech encoder decoder blog
  • Loading branch information
asusevski authored Aug 25, 2023
1 parent ae320fa commit 8968ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/model_doc/speech-encoder-decoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

>>> # 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()
```

Expand All @@ -129,4 +129,4 @@ speech inputs) and `labels` (which are the `input_ids` of the encoded target seq

[[autodoc]] FlaxSpeechEncoderDecoderModel
- __call__
- from_encoder_decoder_pretrained
- from_encoder_decoder_pretrained

0 comments on commit 8968ffa

Please sign in to comment.