Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information