TensorFlow-Tutorials-for-Time-Series icon indicating copy to clipboard operation
TensorFlow-Tutorials-for-Time-Series copied to clipboard

Problem with "tf.nn.rnn"

Open yakotaki opened this issue 7 years ago • 0 comments

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

yakotaki avatar Mar 02 '17 06:03 yakotaki