Skip to content

Memory leakage in long term forecast #21

@MyssH

Description

@MyssH

Description:
I encountered a memory leakage issue when using a large dataset for long-term forecasting. It seems the problem occurred because the loss was being accumulated as a tensor instead of a scalar.

Solution:
To fix this, I changed:
loss_val += loss to loss_val += loss.item()
at the following lines:

  • exp/exp_long_term_forecasting.py#144

  • exp/exp_long_term_forecasting.py#149

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