TensorFlow-Tutorials-for-Time-Series
TensorFlow-Tutorials-for-Time-Series copied to clipboard
Problem with "tf.nn.rnn"
def model(X, W, B, lstm_size): outputs, _states = tf.nn.rnn(lstm, X_split, dtype=tf.float32)
Where is tf.nn.rnn in tf 1.0
Thanks
I made it working for ver 1.0 with this code for model:
lstm = tf.contrib.rnn.BasicLSTMCell(lstm_size, forget_bias=1.0, state_is_tuple=True)
outputs, states = tf.contrib.rnn.static_rnn(lstm, X_split, dtype=tf.float32)
return tf.matmul(outputs[-1], W) + B, lstm.state_size # State size to initialize the stat
Nice tutorial, thanks