hnluo
2023-09-13 b091828cea36e5f745ecadedc6aae2eba517768d
Merge pull request #936 from alibaba-damo-academy/dev_lhn

Dev lhn
1个文件已修改
2 ■■■ 已修改文件
funasr/bin/asr_infer.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/bin/asr_infer.py
@@ -430,7 +430,7 @@
        # b. Forward Encoder
        if decoding_ind is None:
            decoding_ind = self.decoding_ind
            decoding_ind = 0 if self.decoding_ind is None else self.decoding_ind
        enc, enc_len = self.asr_model.encode(**batch, ind=decoding_ind)
        if isinstance(enc, tuple):
            enc = enc[0]