AssertionError: Error in test. The lists contain a different number of elements
This means that you could not create a model correctly. And, this is the first check in the test. Another test follows.
Please try this after a unit test.
summary(inference_model)
Then output should be;
[['InputLayer', [(None, 1, 90)], 0],
['InputLayer', [(None, 64)], 0],
['InputLayer', [(None, 64)], 0],
['LSTM',
[(None, 64), (None, 64), (None, 64)],
39680,
[(None, 1, 90), (None, 64), (None, 64)],
'tanh'],
['Dense', (None, 90), 5850, 'softmax'],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1],
['TensorFlowOpLayer', [(None,)], 0],
['TensorFlowOpLayer', [(None, 90)], 0],
['RepeatVector', (None, 1, 90), 0, 1]]
Please compare with your output and find differences. The error says the number of layers (elements) are different. But, I think you do not need to count. Just need to check first 10 layers or so, then, find missing layers or incorrect layers.