AssertionError: Error in test. The lists contain a different number of elements
The 2nd. layer of the expected summary is “Input layer”. But in my result, the same layer appeared after “Dot” layer. And “RepeatVector”, “Concatenate” etc. didn’t appear.
Of course, I write “context = one_step_attention(a, s)”.
Why? How can I solve this problem?
<The result of “print(summary(model))”>
[[‘InputLayer’, [(None, 30, 37)], 0]
, [‘Bidirectional’, (None, 30, 64), 17920]
, [‘Dense’, (None, 30, 1), 65, ‘relu’]
, [‘Activation’, (None, 30, 1), 0]
, [‘Dot’, (None, 1, 64), 0]
, [‘InputLayer’, [(None, 64)], 0]
, [‘InputLayer’, [(None, 64)], 0]
, [‘LSTM’, [(None, 64), (None, 64), (None, 64)], 33024, [(None, 1, 64), (None, 64), (None, 64)], ‘tanh’]
, [‘Dense’, (None, 11), 715, ‘softmax’]]