Merge pull request #82 from alibaba-damo-academy/dev_lhn

fix uniasr training bug
This commit is contained in:
hnluo 2023-02-09 15:17:19 +08:00 committed by GitHub
commit 1bae17a7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ class UniASR(AbsESPnetModel):
with torch.no_grad():
speech_raw, encoder_out, encoder_out_lens = self.encode(speech, speech_lengths, ind=ind)
else:
speech_raw, encoder_out_lens = self.encode(speech, speech_lengths, ind=ind)
speech_raw, encoder_out, encoder_out_lens = self.encode(speech, speech_lengths, ind=ind)
intermediate_outs = None
if isinstance(encoder_out, tuple):