Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with "tf.nn.rnn" #8

Open
yakotaki opened this issue Mar 2, 2017 · 0 comments
Open

Problem with "tf.nn.rnn" #8

yakotaki opened this issue Mar 2, 2017 · 0 comments

Comments

@yakotaki
Copy link

yakotaki commented Mar 2, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant