mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update
This commit is contained in:
parent
b3257bc418
commit
d6fc85135b
@ -1327,7 +1327,6 @@ def inference_transducer(
|
||||
right_context: Number of frames in right context AFTER subsampling.
|
||||
display_partial_hypotheses: Whether to display partial hypotheses.
|
||||
"""
|
||||
# assert check_argument_types()
|
||||
|
||||
if batch_size > 1:
|
||||
raise NotImplementedError("batch decoding is not implemented")
|
||||
|
||||
@ -16,7 +16,6 @@ from typing import List, Optional, Tuple, Union
|
||||
|
||||
import numpy
|
||||
import torch
|
||||
from typeguard import check_argument_types
|
||||
|
||||
from funasr.models.encoder.abs_encoder import AbsEncoder
|
||||
from funasr.modules.cgmlp import ConvolutionalGatingMLP
|
||||
@ -321,7 +320,6 @@ class BranchformerEncoder(AbsEncoder):
|
||||
padding_idx: int = -1,
|
||||
stochastic_depth_rate: Union[float, List[float]] = 0.0,
|
||||
):
|
||||
assert check_argument_types()
|
||||
super().__init__()
|
||||
self._output_size = output_size
|
||||
|
||||
|
||||
@ -13,7 +13,6 @@ import logging
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
import torch
|
||||
from typeguard import check_argument_types
|
||||
|
||||
from funasr.models.ctc import CTC
|
||||
from funasr.models.encoder.abs_encoder import AbsEncoder
|
||||
@ -210,7 +209,6 @@ class EBranchformerEncoder(AbsEncoder):
|
||||
interctc_layer_idx=None,
|
||||
interctc_use_conditioning: bool = False,
|
||||
):
|
||||
assert check_argument_types()
|
||||
super().__init__()
|
||||
self._output_size = output_size
|
||||
|
||||
|
||||
@ -1538,7 +1538,6 @@ class ASRBATTask(ASRTask):
|
||||
Return:
|
||||
model: ASR BAT model.
|
||||
"""
|
||||
assert check_argument_types()
|
||||
|
||||
if isinstance(args.token_list, str):
|
||||
with open(args.token_list, encoding="utf-8") as f:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user