Unverified Commit eac4aecc authored by Nicolas Patry's avatar Nicolas Patry Committed by GitHub
Browse files

Remove old debug code leftover. (#15306)

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