From 8968fface4e804f380391d880f569578b84b4121 Mon Sep 17 00:00:00 2001 From: Anthony Susevski <77211520+asusevski@users.noreply.github.com> Date: Fri, 25 Aug 2023 03:20:37 -0400 Subject: [PATCH] fixed typo in speech encoder decoder doc (#25745) fixed typo in speech encoder decoder blog --- docs/source/en/model_doc/speech-encoder-decoder.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/en/model_doc/speech-encoder-decoder.md b/docs/source/en/model_doc/speech-encoder-decoder.md index 495f7da659..b036f27e18 100644 --- a/docs/source/en/model_doc/speech-encoder-decoder.md +++ b/docs/source/en/model_doc/speech-encoder-decoder.md @@ -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() ``` @@ -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 \ No newline at end of file + - from_encoder_decoder_pretrained