Skip to content

ValueError: Cannot take the length of shape with unknown rank. #13

Description

@ThDarkKnight

#3 After I applied these changes wrt that closed issue, I am getting this error. Does anyone have an idea how to solve this? Code runs on Google Colab.


ValueError Traceback (most recent call last)
in ()
5 num_layers,
6 threshold)
----> 7 model = build_graph(keep_probability, rnn_size, num_layers, batch_size, learning_rate, embedding_size, direction)
8 train(model, epochs, log_string)

2 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/tensor_shape.py in len(self)
743 """Returns the rank of this shape, or raises ValueError if unspecified."""
744 if self._dims is None:
--> 745 raise ValueError("Cannot take the length of shape with unknown rank.")
746 return len(self._dims)
747

ValueError: Cannot take the length of shape with unknown rank.

Activity

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