TensorFlow C API for Jetson Nano

Hey!

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.

Regards,
Piotrek

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.

Regards!

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

https://jkjung-avt.github.io/build-tensorflow-2.0.0/

You may need those 2 before for some prerequisite:
https://jkjung-avt.github.io/setting-up-nano/
https://jkjung-avt.github.io/build-tensorflow-1.12.2/

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.

Regards!