Skip to content

multiple updates#153

Open
JanekEbb wants to merge 8 commits into
fgnt:masterfrom
JanekEbb:master
Open

multiple updates#153
JanekEbb wants to merge 8 commits into
fgnt:masterfrom
JanekEbb:master

Conversation

@JanekEbb

Copy link
Copy Markdown
Contributor

No description provided.

- additional args to freeze to be able to individually freeze conv params, norm params and norm statistics
- add argument to allow normalization on skip convs
…rrectly with resume; make LRAnnealingHook work with multiple param_groups;
…which correctly implements weight decay in Adam updates
@JanekEbb JanekEbb requested a review from TCord December 30, 2023 19:37
@codecov-commenter

codecov-commenter commented Dec 30, 2023

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 60.00000% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.82%. Comparing base (c1c036d) to head (41a7504).
⚠️ Report is 82 commits behind head on master.

Files with missing lines Patch % Lines
padertorch/utils.py 30.76% 9 Missing ⚠️
padertorch/train/hooks.py 69.56% 7 Missing ⚠️
padertorch/modules/normalization.py 40.00% 3 Missing ⚠️
padertorch/train/optimizer.py 77.77% 2 Missing ⚠️
padertorch/train/trigger.py 66.66% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
- Coverage   76.92%   76.82%   -0.11%     
==========================================
  Files          46       46              
  Lines        3745     3776      +31     
==========================================
+ Hits         2881     2901      +20     
- Misses        864      875      +11     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread padertorch/train/hooks.py
return self.get_optimizer(trainer).param_groups[0]['lr']
opt = self.get_optimizer(trainer)
lrs = [param_group['lr'] for param_group in opt.param_groups]
if len(set(lrs)) == 1:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why returning a scalar, when all lrs are the same?
Why not simply if len(lrs) == 1:?

self.parameters, grad_clips
)
if isinstance(self.parameters[0], dict) and 'params' in self.parameters[0]:
params = itertools.chain(*[param_group['params'] for param_group in self.parameters])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is that a bug in PyTorch, that the optimizers support more inputs than the clip_grad_norm_?
Could you add a comment here, which special case is solved?

Comment thread padertorch/utils.py
if force_dense:
array = array.to_dense()
else:
raise NotImplementedError

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do you raise a NotImplementedError? Will Sparce Tensors not be converted to scipy? Or are the ambiguities?

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.

4 participants