Switch from contrib to non-contrib RNN cell
PiperOrigin-RevId: 267532783
This commit is contained in:
parent
ccd4d13357
commit
cf27972e28
@ -3484,7 +3484,7 @@ def make_lstm_tests(options):
|
||||
# forget_bias == 0, inner state activation == tanh.
|
||||
# TODO(zhixianyan): Add another test with forget_bias == 1.
|
||||
# TODO(zhixianyan): Add another test with relu as activation.
|
||||
lstm_cell = tf.contrib.rnn.BasicLSTMCell(
|
||||
lstm_cell = tf.nn.rnn_cell.BasicLSTMCell(
|
||||
num_cells, forget_bias=0.0, state_is_tuple=True)
|
||||
cell_outputs, _ = rnn.static_rnn(
|
||||
lstm_cell, inputs_after_split, dtype=tf.float32)
|
||||
|
Loading…
Reference in New Issue
Block a user