There's been some interest expressed in building a TF library for Go:
https://github.com/tensorflow/tensorflow/issues/10
Before embarking on this endeavor, I thought it'd be a good idea to get some feedback first. From
http://www.tensorflow.org/api_docs/cc/index.html, it seems like maybe at some point in the future the public TF library may add the support for building graphs and not just executing them, but for now it's limited to executing graphs: "TensorFlow's public C++ API includes only the API for executing graphs, as of version 0.5."
It seems like the current recommended way is to use python to build the graph, then use tf.train.write_graph() to write the graph to a file, and then load it into a session into C++ (or insert your language of choice), and then run it using the TF C++ API.
It doesn't feel like it will be a trivial thing to port the graph building code from Python to Go, and arguably there are some things in there that would be error prone and would benefit from being abstracted away. So a few questions for those that may have more information than me:
- Are there plans to build and expose the graph building mechanism via the C++ API?
- Would a Go library in an ideal world have graph building itself, or simply be an interface to the C++ API as it could do for graph executing today?
Nathan