A simple template to develop tensorflow c++ application
- GCC
- Bazel 0.16.1
- Tensorflow 1.10.0
- (Optional) Cuda and cuDNN
Clone the repository and configure the building:
$ git clone https://github.com/zxkyjimmy/tf-cpp-template
$ cd tf-cpp-template
$ ./configureRefer to tensorflow official to know how to set ./configure.
$ bazel build //example:example$ bazel-bin/example/example- base on tensorflow C++ API Guide
Please abjust the following files:
configureconfigure.pyWORKSPACEtools/bazel.rc