-
I saved a model to torchscript from a publicly available pytorch model. Example here: https://aiqm.github.io/torchani-test-docs/examples/jit.html
Here is what my code looks like: Path modelDir = Paths.get("./models");
Model model = Model.newInstance("ANI-1ccx");
model.load(modelDir, "compiled_model.pt"); |
Beta Was this translation helpful? Give feedback.
Answered by
frankfliu
Aug 25, 2022
Replies: 2 comments 9 replies
-
|
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
mhermon
-
If you use python 1.12.1 to trace the model, you cannot use python 1.11.0 to load it. jit trace model is not forward compatible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mhermon
jit.trace()
instead ofjit.script()
?