Here you'll learn how to build Tensorflow for the raspberry pi 3 with either the Python API or as a standalone shared library which can be interfaced from the C++ API and eventually as a library which can be used in other languages.
For the C++ library this tutorial will show you how extract tensorflow library and headers to use in any environment you want.
(This tutorial couldn't be possible without the help of the people from the References section)