Created
December 21, 2021 20:38
-
-
Save J3698/4ee32bd2c2ef5a9cdac6a64e7c7e7219 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
model = Model() | |
model.eval() | |
state_dict = torch.load("Test.pt", map_location = torch.device("cpu")) | |
model.load_state_dict(state_dict['model']) | |
size = 32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment