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/deprec nn #2593

Merged
merged 5 commits into from
Nov 14, 2024
Merged

Fix/deprec nn #2593

merged 5 commits into from
Nov 14, 2024

Conversation

madtoinou
Copy link
Collaborator

@madtoinou madtoinou commented Nov 12, 2024

Checklist before merging this PR:

  • Mentioned all issues that this PR fixes or addresses.
  • Summarized the updates of this PR under Summary.
  • Added an entry under Unreleased in the Changelog.

Summary

SaeedForoutan and others added 4 commits May 18, 2024 06:24
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.
Corrected file saving process for checkpoint files (ckpt) to filter out occurrences of the string '.pt' from the previous file path."
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.09%. Comparing base (d909589) to head (f620f02).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2593      +/-   ##
==========================================
- Coverage   94.14%   94.09%   -0.06%     
==========================================
  Files         139      139              
  Lines       14884    14884              
==========================================
- Hits        14013    14005       -8     
- Misses        871      879       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@dennisbader dennisbader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @madtoinou

@dennisbader dennisbader merged commit d60ef87 into master Nov 14, 2024
9 checks passed
@dennisbader dennisbader deleted the fix/deprec_nn branch November 14, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants