Fix typo (#25966)
* Update feature_extraction_clap.py * changed all lenght to length
This commit is contained in:
@@ -265,8 +265,8 @@ class UniSpeechSatModelTester:
|
||||
input_values[i, input_lengths[i] :] = 0.0
|
||||
|
||||
if max_length_labels[i] < labels.shape[-1]:
|
||||
# it's important that we make sure that target lenghts are at least
|
||||
# one shorter than logit lenghts to prevent -inf
|
||||
# it's important that we make sure that target lengths are at least
|
||||
# one shorter than logit lengths to prevent -inf
|
||||
labels[i, max_length_labels[i] - 1 :] = -100
|
||||
|
||||
loss = model(input_values, labels=labels).loss
|
||||
|
||||
Reference in New Issue
Block a user