Skip to content

Multilayer problem #15

Description

@yashbuild

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

Activity

  1. Robomate commented on Jul 17, 2017

    @Robomate

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

  2. Robomate commented on Jul 18, 2017

    @Robomate

    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)
    
  3. igormq commented on Jul 27, 2017

    @igormq
    Owner

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

  4. nebgru commented on Nov 22, 2017

    @nebgru

    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.

  5. igormq commented on Mar 26, 2018

    @igormq
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions