New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading a .pt files gives an error #58
Comments
That seems very odd, if you look at the pytorch code triggering this here, this uses |
The PyTorch version in my conda environment is set to 1.9.0. Is it possible that ocaml is taking some other environment's pytorch version?
(My base conda environment doesn't have pytorch installed.) |
Sorry for a lot of doubts, but does opam-torch v0.7 correspond to pytorch 1.9.0 (given in README) or is it v0.13? |
Seems like this was the issue. I upgraded to v0.13 and reboot the system (reboot was necessary). And it seems to work. Thanks @LaurentMazare! |
Closing this at it seems fixed now, feel free to re-open if needed. |
Hi! I have been trying to use ocaml-torch to load a PyTorch model that has already been trained. I have installed PyTorch 1.9.0 which is what is compatible with ocaml-torch. Upon trying to load the file, it throws the following error
Can you suggest what can be done in this case? Thank you!
Edit: Source code
python file -
ocaml file -
The text was updated successfully, but these errors were encountered: