TensorFlow C API for Jetson Nano


Has anybody experience with building TensorFlow C API on Jetson Nano board? I would be especially interested in TensorFlow 2, but is it already available/possibile to run it?
Information about previous version also appreciated as there is not much about it in web.

I’ll be grateful for any help.


You can simply follow https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/lib_package/README.md

Also look out for build instructions and patches in this forum for specific TF versions.

Don’t know if this really works as my C developer experience is a bit rusty: as the Python bindings rely on the C-API you might copy libtensorflow_framework.so from your Python environment to you lib-path and use https://github.com/tensorflow/tensorflow/blob/master/tensorflow/c/c_api.h

Thank you! I will proceed with the topic after weekend and update if succeed or got stucked.


Actually I found a way to get C API for TF2 on one blog. Simply, follow this instructions:


You may need those 2 before for some prerequisite:

If you want to get libtensorflow.so (C API) instead of PIP package, you will need a slight change in the end of the script, in bazel build command.

Building TF lasted ~17 hours for me on Jetson Nano.