Fix a bug in decode.py (#893)

Co-authored-by: yifanyang <yifanyeung@yifanyangs-MacBook-Pro.local>
This commit is contained in:
Yifan Yang 2023-02-09 12:12:23 +08:00 committed by GitHub
parent e916027bfe
commit 5cd1636cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View File

@ -481,7 +481,6 @@ def decode_one_batch(
res = DecodingResults(hyps=tokens, timestamps=timestamps) res = DecodingResults(hyps=tokens, timestamps=timestamps)
hyps, timestamps = parse_hyp_and_timestamp( hyps, timestamps = parse_hyp_and_timestamp(
decoding_method=params.decoding_method,
res=res, res=res,
sp=sp, sp=sp,
subsampling_factor=params.subsampling_factor, subsampling_factor=params.subsampling_factor,

View File

@ -525,7 +525,6 @@ def decode_one_batch(
res = DecodingResults(hyps=tokens, timestamps=timestamps) res = DecodingResults(hyps=tokens, timestamps=timestamps)
hyps, timestamps = parse_hyp_and_timestamp( hyps, timestamps = parse_hyp_and_timestamp(
decoding_method=params.decoding_method,
res=res, res=res,
sp=sp, sp=sp,
subsampling_factor=params.subsampling_factor, subsampling_factor=params.subsampling_factor,