LSTM error ValueError: Unexpected result of `train_function` (Empty logs). Please use `Model.compile(..., run_eagerly=True)`, or `tf.config.run_functions_eagerly(True)` for more information of where went wrong, or file a issue/bug to `tf.keras`




I am having trouble trying to fit my model. I get the following error: ValueError: Unexpected result of train_function (Empty logs). Please use Model.compile(..., run_eagerly=True), or tf.config.run_functions_eagerly(True) for more information of where went wrong, or file a issue/bug to tf.keras.

What can I change in my code to fix this error? Is my model not being fitted properly?

I am trying to use a multivariate LSTM model to predict future sales by SKU. I am using various features for this prediction. Here is snippets of my code for a better understanding of my train and test shape and the error.