recurrentshop
recurrentshop copied to clipboard
[ERROR] TypeError: ('Keyword argument not understood:', 'input_length')
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?
Did you solve the problem? I have the same problem.
I changed:
rc = RecurrentContainer(input_length=input_length, unroll=unroll)
to
rc = RecurrentContainer(unroll=unroll, input_shape=(input_length, dim))
This solved the problem.