mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 00:29:38 +08:00
Replaced discontinued rnn_cell.BasicLSTMCell with rnn_cell.LSTMCell (#4703)
* Fixed bug in Dirichlet (#4440) * Replaced deprecated rnn_cell.BasicLSTMCell with rnn_cell.LSTMCell
This commit is contained in:
committed by
Eric Liang
parent
f87235f232
commit
78bb26286e
@@ -56,7 +56,7 @@ class LSTM(Model):
|
||||
last_layer = add_time_dimension(features, self.seq_lens)
|
||||
|
||||
# Setup the LSTM cell
|
||||
lstm = rnn.BasicLSTMCell(cell_size, state_is_tuple=True)
|
||||
lstm = tf.nn.rnn_cell.LSTMCell(cell_size, state_is_tuple=True)
|
||||
self.state_init = [
|
||||
np.zeros(lstm.state_size.c, np.float32),
|
||||
np.zeros(lstm.state_size.h, np.float32)
|
||||
|
||||
Reference in New Issue
Block a user