The tensorflow-ocaml project provides some OCaml bindings for TensorFlow, a machine learning framework. These bindings are in an early stage of their development. Some operators are not supported and the API is likely to change in the future. You may also encounter some segfaults. That being said they already contain the necessary to train a convolution network using various optimizers.