@ -129,7 +129,7 @@ class DeepSpeech2Model(nn.Layer):
rnn_layer_size=1024,#RNN layer size (number of RNN cells).
use_gru=True,#Use gru if set True. Use simple rnn if set False.
share_rnn_weights=True,#Whether to share input-hidden weights between forward and backward directional RNNs.Notice that for GRU, weight sharing is not supported.
ctc_grad_norm_type='instance',))
ctc_grad_norm_type=None,))
ifconfigisnotNone:
config.merge_from_other_cfg(default)
returndefault
@ -143,7 +143,7 @@ class DeepSpeech2Model(nn.Layer):
use_gru=False,
share_rnn_weights=True,
blank_id=0,
ctc_grad_norm_type='instance'):
ctc_grad_norm_type=None):
super().__init__()
self.encoder=CRNNEncoder(
feat_size=feat_size,
@ -220,16 +220,14 @@ class DeepSpeech2Model(nn.Layer):