Skip to content

Commit eac4aec

Browse files
authored
Remove old debug code leftover. (huggingface#15306)
1 parent 2390b2c commit eac4aec

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/transformers/pipelines/automatic_speech_recognition.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,7 @@ def postprocess(self, model_outputs):
300300
logits = outputs["logits"].numpy()
301301
stride = outputs.get("stride", None)
302302
if stride is not None:
303-
try:
304-
total_n, left, right = stride
305-
except Exception:
306-
import ipdb
307-
308-
ipdb.set_trace()
303+
total_n, left, right = stride
309304
# Total_n might be < logits.shape[1]
310305
# because of padding, that's why
311306
# we need to reconstruct this information

0 commit comments

Comments
 (0)