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

crnn.py dynamic_rnn runtime error : ValueError #2

Open
iamuspace opened this issue Jul 28, 2017 · 2 comments
Open

crnn.py dynamic_rnn runtime error : ValueError #2

iamuspace opened this issue Jul 28, 2017 · 2 comments

Comments

@iamuspace
Copy link

Hi

I have runtime error for execution crnn.py

My env :
OS : Windows 7
Python 3.5.3 Anaconda

Any solution to fix it ?


crnn.py line 67

gru1_out, state = tf.nn.dynamic_rnn (gru1, gru1_in, dtype=tf.float32, scope='gru1')

ValueError: Trying to share variable gru1/multi_rnn_cell/cell_0/gru_cell/gates/kernel,
but specified shape (64, 64) and found shape (160, 64).

@iamuspace
Copy link
Author

I worked OK by changing some code.

stacked_rnn = []
for i in range(15):
    stacked_rnn.append(tf.nn.rnn_cell.GRUCell(32)) 
gru1 = tf.nn.rnn_cell.MultiRNNCell( stacked_rnn )  

cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=y_, labels=y))

@22w2w2
Copy link

22w2w2 commented Mar 12, 2018

Hello, this project includes the final accuracy test? Isn't it only the training of the model? Thank you

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