Remove old debug code leftover. (#15306)

This commit is contained in:
Nicolas Patry 2022-01-24 13:27:45 +01:00 committed by GitHub
parent 2390b2cf65
commit eac4aecc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -300,12 +300,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline):
logits = outputs["logits"].numpy()
stride = outputs.get("stride", None)
if stride is not None:
try:
total_n, left, right = stride
except Exception:
import ipdb
ipdb.set_trace()
total_n, left, right = stride
# Total_n might be < logits.shape[1]
# because of padding, that's why
# we need to reconstruct this information