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

Multilayer problem #15

Open
oppasource opened this issue Jun 16, 2017 · 5 comments
Open

Multilayer problem #15

oppasource opened this issue Jun 16, 2017 · 5 comments

Comments

@oppasource
Copy link

When I change the num_layers to some other value (tried 2, 3 and 4). It gives a Value Error. The error is as follows..... ValueError: Trying to share variable rnn/multi_rnn_cell/cell_0/lstm_cell/kernel, but specified shape (100, 200) and found shape (63, 200).

This error occurred on line 110 of ctc_tensorflow_example.py
Am I doing something wrong or is there any other value that needs to be changed. Please help

@Robomate
Copy link

Robomate commented Jul 17, 2017

using tf vers 1.2 . I am also getting this error. Anyone found out how to correctly use MultiRNNCell with this example?

@Robomate
Copy link

Robomate commented Jul 18, 2017

I found this solution here https://danijar.com/introduction-to-recurrent-networks-in-tensorflow/:

cells = []
for _ in range(num_layers):
  cell = tf.contrib.rnn.GRUCell(num_units)  # Or LSTMCell(num_units)
  cells.append(cell)
cell = tf.contrib.rnn.MultiRNNCell(cells)

@igormq
Copy link
Owner

igormq commented Jul 27, 2017

Thank you for your answer @Robomate. Did the error stop for you too, @oppasource ?

@nebgru
Copy link

nebgru commented Nov 22, 2017

Hi all,
I'm so glad I found this post as it is the first practical solution to this problem. However, this particular example fails to train the net properly as the decoded sentence is blank. Did anyone else try this? I'm training my own network on a large data set at the moment, will post the results here later.

@igormq
Copy link
Owner

igormq commented Mar 26, 2018

Hi @nebgru , did you solve your problem?

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

4 participants