LaurentMazare/ocaml-torch
OCaml bindings for PyTorch
Bindings leverage PyTorch's C++ API with mostly auto-generated stubs to expose tape-based automatic differentiation and GPU-accelerated tensor operations. Includes a vision library with pre-trained ResNet, DenseNet, EfficientNet, and other models, plus examples spanning MNIST classification, neural style transfer, GANs, and stable diffusion implementations. Supports both CPU and CUDA execution through libtorch, with interactive development via utop and ocaml-jupyter.
439 stars. No commits in the last 6 months.
Stars
439
Forks
38
Language
OCaml
License
Apache-2.0
Category
Last pushed
Oct 17, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/LaurentMazare/ocaml-torch"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
JonathanRaiman/theano_lstm
:microscope: Nano size Theano LSTM module
google/tangent
Source-to-Source Debuggable Derivatives in Pure Python
pranftw/neograd
A deep learning framework created from scratch with Python and NumPy
ahrefs/ocannl
OCANNL: OCaml Compiles Algorithms for Neural Networks Learning
yoshoku/numo-openblas
Numo::OpenBLAS builds and uses OpenBLAS as a background library for Numo::Linalg