I’ve been trying to set up the TimeSeriesTransformerForPrediction model with a time series dataset I’ve preprocessed for it.
After a painstaking process I’ve managed to get to the point in the script where I’m just about ready to initiate the training of said model.
however I am thuroughly stuck on this issue:
File “C:\Users\difrf\ASSEMBLE TRANSFORMERS\lib\site-packages\torch\nn\modules\module.py”, line 1501, in _call_impl
return forward_call(*args, **kwargs)
File “C:\Users\difrf\ASSEMBLE TRANSFORMERS\lib\site-packages\transformers\models\time_series_transformer\modeling_time_series_transformer.py”, line 1430, in forward
transformer_inputs, loc, scale, static_feat = self.create_network_inputs(
File “C:\Users\difrf\ASSEMBLE TRANSFORMERS\lib\site-packages\transformers\models\time_series_transformer\modeling_time_series_transformer.py”, line 1303, in create_network_inputs
torch.cat(
TypeError: expected Tensor as element 1 in argument 0, but got NoneType
0%| | 0/81910 [00:00<?, ?it/s]
After triplechecking that I’m passing: [past_values, future_values, past_time_features and past_observed_mask] as tensors I’m still receiving this error.
I’m starting to suspect there might be another required positional argument I’m not aware off or maybe I’m just hopelessly stupid. Any help or feedback on how to get past this issue would be greatly appreciated