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

Fixed EH and error reporting in restore_from #3583

Merged
merged 13 commits into from
Feb 7, 2022

Conversation

borisfom
Copy link
Collaborator

@borisfom borisfom commented Feb 2, 2022

Signed-off-by: Boris Fomitchev [email protected]

What does this PR do ?

Fixes 'lost cascading error info' due to constructor not being under try:.
As a result, my previously added code to save initial error was not executed.
Also streamlined control flow in that block.

Collection: [Note which collection this PR will affect]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

@borisfom borisfom requested a review from ericharper February 2, 2022 03:34
Signed-off-by: Boris Fomitchev <[email protected]>
@borisfom
Copy link
Collaborator Author

borisfom commented Feb 2, 2022

Well, I realized the actual problem was fixed in main right before ... so that fix only streamlines flow and improves formatting.

nemo/core/classes/common.py Outdated Show resolved Hide resolved
@titu1994
Copy link
Collaborator

titu1994 commented Feb 2, 2022

The other changes look great

@borisfom borisfom requested a review from titu1994 February 2, 2022 18:53
Copy link
Collaborator

@ericharper ericharper 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!

Copy link
Collaborator

@titu1994 titu1994 left a comment

Choose a reason for hiding this comment

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

Lgtm

@titu1994 titu1994 merged commit 5278a09 into NVIDIA:main Feb 7, 2022
fayejf pushed a commit that referenced this pull request Mar 2, 2022
* Fixed EH and error reporting in restore_from

Signed-off-by: Boris Fomitchev <[email protected]>

* --amend

Signed-off-by: Boris Fomitchev <[email protected]>

* Fixed merge issue

Signed-off-by: Boris Fomitchev <[email protected]>

Co-authored-by: Eric Harper <[email protected]>
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