本文档为tensorflow参考文档,本转载已得到tensorflow中文社区授权。
tensorflow's public c++ api includes only the api for executing graphs, as of version 0.5. to control the execution of a graph from c++:
load the graph using the c++ session api. for example:
run the graph with a call to <code>session->run()</code>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classenv.html">tensorflow::env</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classenvwrapper.html">tensorflow::envwrapper</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classrandomaccessfile.html">tensorflow::randomaccessfile</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classsession.html">tensorflow::session</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classstatus.html">tensorflow::status</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classtensor.html">tensorflow::tensor</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classtensorbuffer.html">tensorflow::tensorbuffer</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classtensorshape.html">tensorflow::tensorshape</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classtensorshapeiter.html">tensorflow::tensorshapeiter</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classtensorshapeutils.html">tensorflow::tensorshapeutils</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classthread.html">tensorflow::thread</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/classwritablefile.html">tensorflow::writablefile</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/structsessionoptions.html">tensorflow::sessionoptions</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/structstate.html">tensorflow::status::state</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/structtensorshapedim.html">tensorflow::tensorshapedim</a>
<a href="http://www.tensorfly.cn/tfdoc/api_docs/cc/structthreadoptions.html">tensorflow::threadoptions</a>