31 static std::unique_ptr<RegCNNGraph>
create(
const char* graph_file_name,
const unsigned int &ninputs,
const std::vector<std::string> &
outputs = {})
34 std::unique_ptr<RegCNNGraph> ptr(
new RegCNNGraph(graph_file_name, ninputs,
outputs, success));
35 if (success) {
return ptr; }
36 else {
return nullptr; }
45 std::vector< std::vector<float> >
run(
47 long long int samples = -1);
48 std::vector< std::vector<float> >
run(
50 const unsigned int& ninputs,
51 long long int samples = -1);
52 std::vector< std::vector<float> >
run(
54 const std::vector<float>
cm,
const unsigned int& ninputs,
55 long long int samples = -1);
57 std::vector< std::vector< float > >
run(
const tensorflow::Tensor &
x);
58 std::vector< std::vector< float > >
run(
const std::vector< tensorflow::Tensor >& x);
62 RegCNNGraph(
const char* graph_file_name,
const unsigned int& ninputs,
const std::vector<std::string> &
outputs,
bool & success);
static constexpr double cm
std::vector< std::string > fInputNames
std::vector< std::string > fOutputNames
static std::unique_ptr< RegCNNGraph > create(const char *graph_file_name, const unsigned int &ninputs, const std::vector< std::string > &outputs={})
tensorflow::Session * fSession