Merge pull request #2613 from lissyx/fix-tflite-forget_bias
Set forget_bias=0 for static RNN implementation
This commit is contained in:
commit
1d0035ce7f
@ -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'):
|
with tfv1.variable_scope('cudnn_lstm/rnn/multi_rnn_cell'):
|
||||||
# Forward direction cell:
|
# Forward direction cell:
|
||||||
fw_cell = tfv1.nn.rnn_cell.LSTMCell(Config.n_cell_dim,
|
fw_cell = tfv1.nn.rnn_cell.LSTMCell(Config.n_cell_dim,
|
||||||
|
forget_bias=0,
|
||||||
reuse=reuse,
|
reuse=reuse,
|
||||||
name='cudnn_compatible_lstm_cell')
|
name='cudnn_compatible_lstm_cell')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user