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

Which TF version to use? #19

Open
mojesty opened this issue May 27, 2018 · 1 comment
Open

Which TF version to use? #19

mojesty opened this issue May 27, 2018 · 1 comment

Comments

@mojesty
Copy link

mojesty commented May 27, 2018

I tried to launch this project vie TF 1.8, but found that rnn_cell._linear attribute is unavailable. So i googled until found the advice to replace this class method with tf.contrib.fully_connected layer. Then the next problem arose: how to transform arguments, because fully_connected layer has 14 and there are 4 args w/o keywirds in the code.
I think i succeeded in it, however, I was not able to map the last argument from phi_hs2d = tanh(rnn_cell._linear(hs2d, num_units, True, 1.0)) to any argument in fully_connected init. I suppose that True in the line above means trainable=True

Next problem is the shape mismatch: ValueError: Shapes must be equal rank, but are 2 and 3 for 'NLC/Decoder/DecoderAttnCell/DecoderAttnCell/while/Select' (op: 'Select') with input shapes: [?], [?,400], [2,?,400]. in nlc_model.py:166, so probably the model either can't be ported straightforwardly to the newest version of TF or has the size mismatch error inside it.

Could you help, e. g. provide complete environment where the model can be trained?

@surya-kanoria
Copy link

It worked for me with TF 0.12. Please try with it.

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

2 participants