{"repo":"Neargye/hello_tf_c_api","free":true,"listed":false,"github":"https://github.com/Neargye/hello_tf_c_api","clone":"git clone https://github.com/Neargye/hello_tf_c_api.git","description":"Neural Network TensorFlow C API","language":"C++","stars":472,"topics":["cpp","tensorflow","c","api","machine-learning","neural-network","deep-learning","deep-neural-networks"],"license":"MIT","category":"machine-learning","readme_excerpt":"TensorFlow C API Examples A small cross-platform set of TensorFlow C API examples for Windows, Linux, and macOS. Requirements CMake 3.20 or newer. C++17 compiler. Python with pip. CI uses Python 3.12. 64-bit target platform. Examples Hello TF Load graph Create Tensor Create String Tensor Image processing Run target operation OpenCV image file processing (optional, requires OpenCV) Allocate Tensor Run session Repeated inference Interface Batch Interface Tensor Info Graph Info Build and test Windows Linux macOS Notes CMake downloads TensorFlow 2.21.0 from the Python wheel into the build-local / deps/tensorflow/python cache by default. To use an existing local TensorFlow wheel extraction, configure with -DTENSORFLOW ROOT=/path/to/tensorflow . Auto-fetch only writes to the default build-local TensorFlow cache; it refuses to overwrite an external TENSORFLOW ROOT . To require a pre-existing extraction and disable downloads during configure, add -DHELLO TF FETCH TENSORFLOW=OFF . Python with pip is required during CMake configure. The small GraphDef used by graph and session examples is committed as models/graph.pb ; no external model download is required. To regenerate the example GraphDef, run python tools/create example graph.py from a Python environment where the full TensorFlow package is available. OpenCV is optional. If CMake finds it, the OpenCV image-file example is built and tested. On Windows, CMake copies the required TensorFlow runtime DLLs into the build output director","default_branch":null,"files":null,"tree":[],"storefront":"/r/Neargye","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Neargye/hello_tf_c_api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}