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; }
39 std::vector<float> run(
const std::vector< std::vector<float> > &
x);
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);
static std::unique_ptr< Graph > create(const char *graph_file_name, const std::vector< std::string > &outputs={})
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::vector< std::string > fOutputNames
tensorflow::Session * fSession