32 static std::unique_ptr<CTPGraph>
create(
const char* graph_file_name,
const std::vector<std::string> &
outputs = {},
int ninputs = 1,
int noutputs = 1)
35 std::unique_ptr<CTPGraph> ptr(
new CTPGraph(graph_file_name,
outputs, success, ninputs, noutputs));
36 if (success) {
return ptr; }
37 else {
return nullptr; }
46 std::vector< std::vector < std::vector< float > > >
run(
48 std::vector< std::vector < std::vector< float > > >
run(
const std::vector< tensorflow::Tensor > &
x);
52 CTPGraph(
const char* graph_file_name,
const std::vector<std::string> &
outputs,
bool & success,
int ninputs,
int noutputs);
static std::unique_ptr< CTPGraph > create(const char *graph_file_name, const std::vector< std::string > &outputs={}, int ninputs=1, int noutputs=1)
tensorflow::Session * fSession
std::vector< std::string > fInputNames
std::vector< std::string > fOutputNames