|
|
@ -19,15 +19,15 @@ from paddle import nn
|
|
|
|
from yacs.config import CfgNode
|
|
|
|
from yacs.config import CfgNode
|
|
|
|
|
|
|
|
|
|
|
|
from deepspeech.models.ds2.conv import ConvStack
|
|
|
|
from deepspeech.models.ds2.conv import ConvStack
|
|
|
|
from deepspeech.modules.ctc import CTCDecoder
|
|
|
|
|
|
|
|
from deepspeech.models.ds2.rnn import RNNStack
|
|
|
|
from deepspeech.models.ds2.rnn import RNNStack
|
|
|
|
|
|
|
|
from deepspeech.modules.ctc import CTCDecoder
|
|
|
|
from deepspeech.utils import layer_tools
|
|
|
|
from deepspeech.utils import layer_tools
|
|
|
|
from deepspeech.utils.checkpoint import Checkpoint
|
|
|
|
from deepspeech.utils.checkpoint import Checkpoint
|
|
|
|
from deepspeech.utils.log import Log
|
|
|
|
from deepspeech.utils.log import Log
|
|
|
|
|
|
|
|
|
|
|
|
logger = Log(__name__).getlog()
|
|
|
|
logger = Log(__name__).getlog()
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ['DeepSpeech2Model', 'DeepSpeech2InferMode']
|
|
|
|
__all__ = ['DeepSpeech2Model', 'DeepSpeech2InferModel']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CRNNEncoder(nn.Layer):
|
|
|
|
class CRNNEncoder(nn.Layer):
|
|
|
|