Cannot batch tensors with different shapes in component 0

when i run the following code :

forecast_series = series[split_time - window_size:-1]
forecast = model_forecast(model, forecast_series, window_size, batch_size)
results = forecast.squeeze()
plot_series(time_valid, (x_valid, results))

I get the following error :

Please move this thread to the right topic.
Course 3 deals with NLP.
Course 4 deals with time series data.

If your model input shape is compatible with the shape of the data when calling predict with the windowed forecast_series, click my name and message your notebook as an attachment.