src/transformers/models/time_series_transformer/modeling_time_series_transformer.py/TimeSeriesTransformerModel/_past_length
class TimeSeriesTransformerModel:    def _past_length(self) -> int:
        return self.config.context_length + max(self.config.lags_sequence)