Skip to content

Commit

Permalink
Merge pull request speechbrain#2432 from speechbrain/Adel-Moumen-patch-1
Browse files Browse the repository at this point in the history
Fix EndToEndSLU
  • Loading branch information
asumagic committed Feb 26, 2024
2 parents 3f9e33a + a4c033c commit b26a6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speechbrain/inference/SLU.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def decode_batch(self, wavs, wav_lens):
with torch.no_grad():
wavs, wav_lens = wavs.to(self.device), wav_lens.to(self.device)
encoder_out = self.encode_batch(wavs, wav_lens)
predicted_tokens, scores = self.mods.beam_searcher(
predicted_tokens, scores, _, _ = self.mods.beam_searcher(
encoder_out, wav_lens
)
predicted_words = [
Expand Down

0 comments on commit b26a6d2

Please sign in to comment.