[Wav2Vec2ForCTC] example typo fixed (#11878)

This commit is contained in:
Ahmet Akkoç 2021-05-26 00:06:14 +03:00 committed by GitHub
parent 1b6530104d
commit a9c797f93d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
"""