Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated usage of torch.nn.utils.weight_norm #2387

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 18, 2024

  1. Fix deprecated usage of torch.nn.utils.weight_norm

    The previous implementation in darts.darts.models.forecasting.tcn_mode was using `torch.nn.utils.weight_norm`, which is deprecated in favor of `torch.nn.utils.parametrizations.weight_norm`. This commit replaces two occurrences of `torch.nn.utils.weight_norm` with the recommended `torch.nn.utils.parametrizations.weight_norm` to resolve the deprecation warning.
    SaeedForoutan authored May 18, 2024
    Configuration menu
    Copy the full SHA
    42ef14a View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Update torch_forecasting_model.py

    Corrected file saving process for checkpoint files (ckpt) to filter out occurrences of the string '.pt' from the previous file path."
    SaeedForoutan authored May 23, 2024
    Configuration menu
    Copy the full SHA
    8cc12c8 View commit details
    Browse the repository at this point in the history