-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass in
strict
flag to allow non-strict state_dict loading
Summary: X-link: pytorch/tnt#691 This allows users to ignore keys in the state_dict that aren't part of the given module, or part of the module that aren't in the state_dict. The default value for the flag (true) keeps the status quo and what the pytorch interface uses. Reviewed By: anshulverma Differential Revision: D53066198 fbshipit-source-id: 8a849f46d09d6e7d9185d589b966f7a7a089d9fc
- Loading branch information
1 parent
0e60109
commit 2b6a030
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters