How do I fix Pytorch-Forecasting model fit ValueError about sequence element
I am new with Pytorch_Forecasting. I followed exactly same as described in 'Demand forecasting with the Temporal Fusion Transformer' (https://pytorch-forecasting.readthedocs.io/en/latest/tutorials/stallion.html). Everything went find until the last model fitting step (trainer.fit(...)). I keep getting the error, &quot;ValueError: dictionary update sequence element #0 has length 1; 2 is required&quot;. I cannot figure out where this is happening... I will appreciate any help, any clue, anything to fix my problem
Thanks!!

I faced the same issue. Pytorch_lightning, recently launched a new version, and pytorch-forecasting is built on top of it. I changed the version of torchmetrics to 0.5.0. pip install torchmetrics==0.5.0
