Skip to content

zxkyjimmy/tf-cpp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf-cpp-template

A simple template to develop tensorflow c++ application

Requirements

  • GCC
  • Bazel 0.16.1
  • Tensorflow 1.10.0
  • (Optional) Cuda and cuDNN

Building and Runing

Clone & configure

Clone the repository and configure the building:

$ git clone https://github.com/zxkyjimmy/tf-cpp-template
$ cd tf-cpp-template
$ ./configure

Refer to tensorflow official to know how to set ./configure.

Build

$ bazel build //example:example

Run

$ bazel-bin/example/example

Template

example

If you would like to update tensorflow version

Please abjust the following files:

  • configure
  • configure.py
  • WORKSPACE
  • tools/bazel.rc

About

A simple template to develop tensorflow c++ application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published