29 static std::unique_ptr<Graph>
create(
const char* graph_file_name,
const std::vector<std::string> &
outputs = {})
32 std::unique_ptr<Graph> ptr(
new Graph(graph_file_name,
outputs, success));
33 if (success) {
return ptr; }
34 else {
return nullptr; }
43 std::vector< std::vector<float> >
run(
45 long long int samples = -1);
46 std::vector< std::vector< float > >
run(
const tensorflow::Tensor &
x);
50 Graph(
const char* graph_file_name,
const std::vector<std::string> &
outputs,
bool & success);
52 tensorflow::Session* fSession;
54 std::vector< std::string > fOutputNames;
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, vertex_property, edge_property, graph_property > Graph
static std::unique_ptr< Graph > create(const char *graph_file_name, const std::vector< std::string > &outputs={})