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