Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
8968ffac
Unverified
Commit
8968ffac
authored
Aug 25, 2023
by
Anthony Susevski
Committed by
GitHub
Aug 25, 2023
Browse files
fixed typo in speech encoder decoder doc (#25745)
fixed typo in speech encoder decoder blog
parent
ae320fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/en/model_doc/speech-encoder-decoder.md
docs/source/en/model_doc/speech-encoder-decoder.md
+2
-2
No files found.
docs/source/en/model_doc/speech-encoder-decoder.md
View file @
8968ffac
...
@@ -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_
feature
s
).
loss
>>>
loss
=
model
(
input_
values
=
input_values
,
labels
=
label
s
).
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment