haoneng.lhn
2023-09-14 dcb92f13eddbf3032ce363b35f13f80afa8f94d1
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]