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
a9c797f9
Unverified
Commit
a9c797f9
authored
May 26, 2021
by
Ahmet Akkoç
Committed by
GitHub
May 25, 2021
Browse files
[Wav2Vec2ForCTC] example typo fixed (#11878)
parent
1b653010
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/wav2vec2/modeling_wav2vec2.py
src/transformers/models/wav2vec2/modeling_wav2vec2.py
+1
-1
No files found.
src/transformers/models/wav2vec2/modeling_wav2vec2.py
View file @
a9c797f9
...
...
@@ -1026,7 +1026,7 @@ class Wav2Vec2ForCTC(Wav2Vec2PreTrainedModel):
>>> # wrap processor as target processor to encode labels
>>> with processor.as_target_processor():
>>> labels = processor(transcription, return_tensors="pt").input_ids
>>> labels = processor(
target_
transcription, return_tensors="pt").input_ids
>>> loss = model(input_values, labels=labels).loss
"""
...
...
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