lingji-yidong
2024-08-19 f43da18b5e097515c12438c70fc7918c29e5d0c8
funasr/models/ctc/ctc.py
@@ -40,9 +40,7 @@
                logging.warning("ignore_nan_grad option is not supported for warp_ctc")
            self.ctc_loss = warp_ctc.CTCLoss(size_average=True, reduce=reduce)
        else:
            raise ValueError(
                f'ctc_type must be "builtin" or "warpctc": {self.ctc_type}'
            )
            raise ValueError(f'ctc_type must be "builtin" or "warpctc": {self.ctc_type}')
        self.reduce = reduce