funasr/models/language_model/rnn/decoders.py
@@ -873,7 +873,9 @@ ctc_state[idx], accum_best_ids ) with torch.cuda.device(vscores.device): device = vscores.device if device.type == 'cuda': with torch.cuda.device(): torch.cuda.empty_cache() dummy_hyps = [{"yseq": [self.sos, self.eos], "score": np.array([-float("inf")])}]