I've wanted the same and have kicked around the idea of binding to mxnet via ctypes.  

Here is mxnet's c api if you're curious: https://github.com/dmlc/mxnet/blob/7773549f5a96eb844d34a3c7814610d4ca26c994/include/mxnet/c_api.h

You might also have a look at https://medium.com/jim-fleming/loading-a-tensorflow-graph-with-the-c-api-4caaff88463f#.2cxtvz6gd



On Thu, Mar 10, 2016 at 11:43 AM, Milo Davis <davis.mil@husky.neu.edu> wrote:
Okay.  I'll see what needs to be done to wrap the C++ code.  Google recommends using Swig.  Does anyone have any advice about using it to wrap C++?

On Thu, Mar 10, 2016 at 10:05 AM, Francois Berenger <francois.berenger@inria.fr> wrote:
On 03/10/2016 03:19 AM, Milo Davis wrote:
Are there Tensorflow bindings for OCaml?  I've looked around the
internet and can't find any, but I'd like to double check before trying
to build my own.  If not, does anyone have any suggestions for an
alternative framework for neural networks in OCaml?

Recently, I was looking for some Kohonen Self Organizing Map (SOM)
library in OCaml and I didn't find one.

In opam, it looks like there is nothing related to neural networks
or I missed it.
This smells like a bad news (as in "nothing mature out there").

It looks like I will have to use R the day I really need to use SOM maps.

Here is what I found however:

https://code.google.com/archive/p/ocaml-onnt/

http://cvs.savannah.gnu.org/viewvc/neurocaml/src/?root=neurocaml

Article 71 in the OCaml Journal (not free, unfortunately):

http://www.ffconsultancy.com/products/ocaml_journal/index.html

An interesting e-mail but with dead links:

http://caml.inria.fr/pub/ml-archives/caml-list/1997\/10/e3746cfab892fc757d0d8abcbcc13420.fr.html

If we had at least some bindings in opam to a high quality neural networks library, that would be useful to several people ...

--
Regards,
Francois.
"When in doubt, use more types"

--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs