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

Misleading documentation for module._load_from_state_dict #17618

Closed
wants to merge 1 commit into from

Conversation

kazhang
Copy link
Contributor

@kazhang kazhang commented Mar 1, 2019

Summary:
Base on the code, we only add key to missing_keys and unexpected_keys if $strict is True. The documentation is confusing.

This diff also fix one FLAKE8 warning.

Differential Revision: D14280593

@kazhang kazhang force-pushed the export-D14280593 branch from f3cbfc5 to ce6886a Compare March 7, 2019 07:15
)

Summary:
Pull Request resolved: pytorch#17618

Base on the code, we only add key to `missing_keys` and `unexpected_keys` if `$strict` is `True`. The documentation is confusing.

This diff also fix one FLAKE8 warning.

Reviewed By: ailzhang

Differential Revision: D14280593

fbshipit-source-id: 605d8cf6499066f843fbf5556a1b106c8e41fda1
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