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

Porting to TensorFlow 1.4 #20

Open
r3mi opened this issue Nov 29, 2017 · 2 comments
Open

Porting to TensorFlow 1.4 #20

r3mi opened this issue Nov 29, 2017 · 2 comments

Comments

@r3mi
Copy link

r3mi commented Nov 29, 2017

Hello,
has anybody successfully ported to TensorFlow 1.4 ?
I am encountering problems, and would appreciate help.

  1. crash here
38     # Build RNN
---> 39     outputs, final_state = tf.nn.dynamic_rnn(cell, embed, dtype=tf.float32)

if embed_dim is different from rnn_size.
For the time being, I leave the 2 values equal.

  1. crash here
---> 34         pred_word = pick_word(probabilities[dyn_seq_length-1], int_to_vocab)
IndexError: index 2 is out of bounds for axis 0 with size 1

same problem as #15

Any ideas ?

@Backalla
Copy link

I also got a similar error on this line.. Fixed it by changing it to..
pred_word = pick_word(probabilities[0][dyn_seq_length-1], int_to_vocab)

@aggoaggo
Copy link

Did anyone get it working with Tensorflow 1.4? I would like to run this on google cloud, but they don't support TensorFlow 1.0 anymore...

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

3 participants