22 struct SavedModelBundle;
29 static std::unique_ptr<Graph>
create(
const char* graph_file_name,
30 const std::vector<std::string>& outputs = {},
31 bool use_bundle =
false,
36 std::unique_ptr<Graph> ptr(
37 new Graph(graph_file_name, outputs, success, use_bundle, ninputs, noutputs));
38 if (success) {
return ptr; }
46 std::vector<std::vector<float>> run(
const std::vector<std::vector<float>>&
x);
51 std::vector<std::vector<std::vector<float>>> run(
53 long long int samples = -1);
54 std::vector<std::vector<std::vector<float>>> run(
const std::vector<tensorflow::Tensor>&
x);
55 std::vector<std::vector<float>> runx(
const std::vector<tensorflow::Tensor>& x);
56 std::vector<std::vector<float>> runae(
const std::vector<tensorflow::Tensor>& x);
62 Graph(
const char* graph_file_name,
63 const std::vector<std::string>& outputs,
65 bool use_bundle =
false,
static std::unique_ptr< Graph > create(const char *graph_file_name, const std::vector< std::string > &outputs={}, bool use_bundle=false, int ninputs=1, int noutputs=1)
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, vertex_property, edge_property, graph_property > Graph
std::vector< std::string > fOutputNames
tensorflow::SavedModelBundle * fBundle
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
tensorflow::Session * fSession
std::vector< std::string > fInputNames