Closed philtomson closed 3 years ago
Looking at the error message, it seems that you are compiling with an old version of pytorch (for the adam optimizer, beta1
and beta2
were replaced by betas
in the c++ api in PyTorch 1.5).
If you installed the libtorch package via opam, maybe you want to update it to 1.5.0. Otherwise if you installed libtorch manually, you can probably get the 1.5 version on the pytorch website
You're right. I had libtorch 1.4. I did:
$ opam upgrade libtorch
And then:
$ opam update $ opam upgrade
$ opam install torch The following actions will be performed: ↘ downgrade libtorch 1.5.0 to 1.4.0 [required by torch] ∗ install torch 0.8
Opam wants to downgrade torch back to 1.4.0. Any idea how I can tell it to use the correct torch package?
We've just released torch 0.9 which should work with libtorch 1.5.0, as this just happened you may have to update your opam.
(and maybe you don't even need the torch opam package to be installed if you're actually compiling inside a clone of theocaml-torch
repo)
I can run the simple example from the README.md in the toplevel:
However, when I try to build it according to the instructions (created example.ml and dune file):
... and lots more.