Skip to content

add path information for parameter update errors -- great help in debugging#252

Merged
davidkoski merged 4 commits intomainfrom
improved-parameter-errors
Jul 14, 2025
Merged

add path information for parameter update errors -- great help in debugging#252
davidkoski merged 4 commits intomainfrom
improved-parameter-errors

Conversation

@davidkoski
Copy link
Collaborator

Fixes #251

Right now the errors just give the last key and the module that it was being set on. This is hard if e.g. the module is Linear and the model is large -- there are typically a LOT of Linear modules.

@davidkoski
Copy link
Collaborator Author

@DePasqualeOrg FYI

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

Nice improvement!

@davidkoski davidkoski merged commit 96c0f69 into main Jul 14, 2025
1 check passed
@davidkoski davidkoski deleted the improved-parameter-errors branch July 14, 2025 22:42
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.

update(parameters:) should show full path on error

2 participants