News for hackers. Stuff that matters.
Re:OCaml bindings for PyTorch by dunefox on Saturday January 19, 2019 @04:28PM (#18949290)
Does this support all of the features of PyTorch?
Re:OCaml bindings for PyTorch by l-m-z on Saturday January 19, 2019 @06:31PM (#18949921)
Bindings author here. This should support most of the PyTorch ops - this is done by automatically generating the binding code as there are more than a thousand of these. Most of the models available in torchvision should also be there (with pre-trained weights) see https://github.com/LaurentMazare/ocaml-torch/tree/master/src... Finally it's also possible to export some python defined models and run them from ocaml.

That being said there are some rough edges compared to the PyTorch api, e.g. no parallel data loader, not much tooling and only a couple tutorials...

Re:OCaml bindings for PyTorch by dunefox on Sunday January 20, 2019 @07:27AM (#18952726)
Sadly, a lack of material is to be expected for anything but Python...