This error comes from the model code. The input to your Dropout layer is not a tensor, but a list or tuple. I can’t suggest anything without the code of model but I would suggest you to check the input of Dropout layer.