Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(torch): native models can load weights from any jit file
Added a function "copy_weights" to copy common weights from a script module to a nn::Module. Weights that do not match are ignored, and printed to the logs as warning.
- Loading branch information
1 parent
0358c4a
commit 69af7f4
Showing
3 changed files
with
78 additions
and
1 deletion.
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
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