Created
August 16, 2020 08:47
-
-
Save KerryHalupka/cace928fee6bf1748662af70c222070c to your computer and use it in GitHub Desktop.
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
#load model weights | |
model.load_state_dict(torch.load(ckpt_dir)) | |
for inputs, targets in test_gen: | |
# use GPU if available | |
inputs = inputs.to(device) | |
inputs = inputs.float() | |
outputs = model(inputs) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment