Created
November 19, 2021 17:48
-
-
Save lgray/8eecd3f5d73a3a6aad1d4fd2ff0dde8f 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
| import torch | |
| from torch_cmspepr.gravnet_model import GravnetModelWithNoiseFilter | |
| model = GravnetModelWithNoiseFilter(input_dim=9, output_dim=6, k=50, signal_threshold=.05) | |
| weights = torch.load("ckpt_train_taus_integrated_noise_Oct20_212115_best_397.pth.tar") | |
| model.load_state_dict(weights["model"]) | |
| jitted = torch.jit.script(model) | |
| torch.jit.save(jitted, "ckpt_train_taus_integrated_noise_Oct20_212115_best_397.ptj") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment