From 5f003cfbd614d6cb2f576a284b68c2e8d37b7866 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Fri, 20 Dec 2019 13:28:42 +0100 Subject: [PATCH] Set forget_bias=0 for static RNN implementation Fixes #2612 --- DeepSpeech.py | 1 + 1 file changed, 1 insertion(+) diff --git a/DeepSpeech.py b/DeepSpeech.py index 85569ebb..3f620502 100755 --- a/DeepSpeech.py +++ b/DeepSpeech.py @@ -126,6 +126,7 @@ def rnn_impl_static_rnn(x, seq_length, previous_state, reuse): with tfv1.variable_scope('cudnn_lstm/rnn/multi_rnn_cell'): # Forward direction cell: fw_cell = tfv1.nn.rnn_cell.LSTMCell(Config.n_cell_dim, + forget_bias=0, reuse=reuse, name='cudnn_compatible_lstm_cell')