-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 yaml serialization in io mixin #11106
Conversation
Signed-off-by: Hemil Desai <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good if you could add some comments or doc strings to this function too, thanks!
nemo/lightning/io/mixin.py
Outdated
call = False | ||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to specify the exception types here? or is it difficult to enumerate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change it to AttributeError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in bd903a0
Signed-off-by: Hemil Desai <[email protected]>
Updated in bd903a0 |
[🤖]: Hi @hemildesai 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully So it might be time to merge this PR or get some approvals I'm just a bot so I'll leave it you what to do next. //cc @pablo-garay @ko3n1g |
There was a further commit after the triggered CI run but it was a docstring name + name change which shouldnt affect result: |
* Fix yaml serialization in io mixin Signed-off-by: Hemil Desai <[email protected]> * Add docstring Signed-off-by: Hemil Desai <[email protected]> --------- Signed-off-by: Hemil Desai <[email protected]>
* Fix yaml serialization in io mixin * Add docstring --------- Signed-off-by: Hemil Desai <[email protected]> Co-authored-by: Hemil Desai <[email protected]>
* Fix yaml serialization in io mixin Signed-off-by: Hemil Desai <[email protected]> * Add docstring Signed-off-by: Hemil Desai <[email protected]> --------- Signed-off-by: Hemil Desai <[email protected]> Signed-off-by: Hainan Xu <[email protected]>
* Fix yaml serialization in io mixin Signed-off-by: Hemil Desai <[email protected]> * Add docstring Signed-off-by: Hemil Desai <[email protected]> --------- Signed-off-by: Hemil Desai <[email protected]>
* Fix yaml serialization in io mixin Signed-off-by: Hemil Desai <[email protected]> * Add docstring Signed-off-by: Hemil Desai <[email protected]> --------- Signed-off-by: Hemil Desai <[email protected]>
* Fix yaml serialization in io mixin Signed-off-by: Hemil Desai <[email protected]> * Add docstring Signed-off-by: Hemil Desai <[email protected]> --------- Signed-off-by: Hemil Desai <[email protected]>
Uses class only when data.qualname or similar fails