Skip to content

[BugFix] Replacing inference_mode decorator with no_grad to fix state_dict loading error #530

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

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

GavinPHR
Copy link

@GavinPHR GavinPHR commented Oct 7, 2022

Description

set title

Motivation and Context

close #529

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

What types of changes does your code introduce? Remove all that do not apply:

  • Bug fix (non-breaking change which fixes an issue)

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • I have read the CONTRIBUTION guide (required)
  • My change requires a change to the documentation.
  • I have updated the tests accordingly (required for a bug fix or a new feature).
  • I have updated the documentation accordingly.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 7, 2022
@GavinPHR GavinPHR requested a review from vmoens October 7, 2022 12:29
@GavinPHR GavinPHR requested a review from vmoens October 7, 2022 12:33
@GavinPHR GavinPHR changed the title [BugFix] Removing inference_mode decorator to fix state_dict loading error [BugFix] Replacing inference_mode decorator with no_grad to fix state_dict loading error Oct 7, 2022
@vmoens vmoens merged commit 3357d19 into pytorch:main Oct 7, 2022
@GavinPHR GavinPHR deleted the inference_mode_fix branch October 7, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants