recurrentshop icon indicating copy to clipboard operation
recurrentshop copied to clipboard

[ERROR] TypeError: ('Keyword argument not understood:', 'input_length')

Open chenzomi12 opened this issue 7 years ago • 2 comments

I run the example code in ./examples/speed_test.py

the code here is:

rc = RecurrentContainer(input_length=input_length, unroll=unroll)
for _ in range(depth):
	rc.add(rnn_cell(dim, input_dim=dim))

But it raise TypeError in terminal with:

File "anaconda/lib/python3.6/site-packages/keras/engine/topology.py", line 277, in __init__
    raise TypeError('Keyword argument not understood:', kwarg)
TypeError: ('Keyword argument not understood:', 'input_length')

So can anyone help?

chenzomi12 avatar May 17 '17 03:05 chenzomi12

Did you solve the problem? I have the same problem.

brunohausmann avatar May 28 '17 15:05 brunohausmann

I changed: rc = RecurrentContainer(input_length=input_length, unroll=unroll) to rc = RecurrentContainer(unroll=unroll, input_shape=(input_length, dim)) This solved the problem.

brunohausmann avatar May 28 '17 15:05 brunohausmann