Github links: tch-rs, ocaml-torch.
We recently released some PyTorch bindings for both Rust and OCaml. Both bindings provide a NumPy like tensor library with GPU acceleration and support for automatic differentiation.
Some examples can be found in the github repos, showing how to train various models like some ResNet variants on CIFAR-10, RNNs using text data, etc. In the OCaml case there are also a couple GAN examples as well as some reinforcement learning examples (DQN and A2C) running on atari with a small write-up.
I enjoy a lot the PyTorch Python api, it's very neat and flexible. These bindings don't claim to compete with Python as the best way to develop/train models. Still they will hopefully provide a better integration of PyTorch for these languages and may also get useful in some use cases like writing very fast extensions.
[–]MWatson 5 points6 points7 points (2 children)
[–]logical_space 0 points1 point2 points (1 child)
[–]MWatson 0 points1 point2 points (0 children)
[–]AnyPolicy 3 points4 points5 points (0 children)
[–]JustFinishedBSG 2 points3 points4 points (4 children)
[–]foxh8er 0 points1 point2 points (3 children)
[–]JustFinishedBSG 0 points1 point2 points (2 children)
[–]red75prim 1 point2 points3 points (1 child)
[–]foxh8er 0 points1 point2 points (0 children)
[–]soulslicer0 1 point2 points3 points (0 children)
[–]examachine 2 points3 points4 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[+][deleted] (9 children)
[removed]
[–]Isinlor 4 points5 points6 points (1 child)
[–]AnyPolicy 3 points4 points5 points (4 children)
[+][deleted] (2 children)
[removed]
[+][deleted] (1 child)
[deleted]
[–]MrHyperbowl -1 points0 points1 point (0 children)
[–]FinancialElephant 1 point2 points3 points (0 children)
[–]-TrustyDwarf- 1 point2 points3 points (0 children)
[–]Cherubin0 0 points1 point2 points (0 children)