Unverified Commit a9c797f9 authored by Ahmet Akkoç's avatar Ahmet Akkoç Committed by GitHub
Browse files

[Wav2Vec2ForCTC] example typo fixed (#11878)

parent 1b653010
......@@ -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
"""
......
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