seq2seq icon indicating copy to clipboard operation
seq2seq copied to clipboard

Raised ValueError "Dimensions must be equal" with the example in README.md

Open Victoriayhk opened this issue 9 years ago • 1 comments

running the script from README.md

from seq2seq.models
import SimpleSeq2Seq

model = SimpleSeq2Seq(input_dim=5, hidden_dim=10, output_length=8, output_dim=8)
...

in ipython (version=2.7.12(Anacaonda), tensorflow_v=0.11.0 as backend).

and a ValueError raised, it says: Dimensions must be equal, but are 10 and 8. So does it because i use tensorflow as backend or other reason?

Victoriayhk avatar Dec 18 '16 03:12 Victoriayhk

When using tensorflow backend, set unroll=True.

farizrahman4u avatar Dec 19 '16 19:12 farizrahman4u