Unverified Commit 8968ffac authored by Anthony Susevski's avatar Anthony Susevski Committed by GitHub
Browse files

fixed typo in speech encoder decoder doc (#25745)

fixed typo in speech encoder decoder blog
parent ae320fa5
...@@ -111,7 +111,7 @@ speech inputs) and `labels` (which are the `input_ids` of the encoded target seq ...@@ -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 ...@@ -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
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment