TensorFlow c++ dump graph to pbtxt
https://github.com/tensorflow/ngraph-bridgengraph-bridge-0.22.0-rc4\logging\tf_graph_writer.*#include <fstream>#include <iomanip>#include <iostream>#include <sstream>#include "
·
https://github.com/tensorflow/ngraph-bridge
ngraph-bridge-0.22.0-rc4\logging\tf_graph_writer.*
直接用tensorflow\core\util\dump_graph.h的 方法
string DumpGraphToFile(const string& name, Graph const& graph,
const FunctionLibraryDefinition* flib_def = nullptr,
const string& dirname = "");
grep -v tensor_content tf_graph.pbtxt > tf_graph1.pbtxt
用于缩减模型文件大小
更多推荐
已为社区贡献4条内容
所有评论(0)