Skip to content

Return None result on forecast of output in the forecasting task #67

Description

@Max98-op

Hello, team.

Thanks for your wonderful model!

This issue existed in the closed list, but when i ran the model to try the forecasting task, i met the same problem too.
And follow your advice in that issue to reload the model, it still can't be fixed.

My tool is Pycharm+python3.11, with cuda11.8+torch2.0.1.

As you said in 'forecasting.ipynb', i loaded the model and use data of ETTh1.csv, the debug process stopped on the line of 'loss = criterion(output.forecast, forecast)', Error Message showed ”AttributeError: 'NoneType' object has no attribute 'size'“, and the final error line was 'if not (target.size() == input.size()):' in 'functional.py'.

After checking, the main reason maybe on the line of 'output = model(x_enc=timeseries, input_mask=input_mask)', beacuse the Forecast of output was None.
2024-12-09 14_36_09-S4C001787693 - Remote Desktop Connection
2024-12-09 14_36_32-Large_Model – Model_Finetuning_by_ETTh1 py
2024-12-09 14_36_57-Large_Model – C__Users_GEDCN_VCAL_PycharmProjects_Large_Model_venv_Lib_site-pack

Beg your reply!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions