11 namespace tensorflow {
class Session;
class Tensor; }
18 const std::vector<InputConfigKeys> &scalarInputKeys,
19 const std::vector<InputConfigKeys> &vectorInputKeys,
20 const std::vector<std::string> &outputKeys
23 void ensure_initialized()
const;
24 std::vector<tensorflow::Tensor>
predict(
const VarDict &vars)
const;
27 static tensorflow::Tensor constructDummyVectorInput(
28 const std::vector<std::string> &vars,
float fillValue = 0.0
31 static tensorflow::Tensor constructScalarInput(
32 const std::unordered_map<std::string, double> &
varMap,
33 const std::vector<std::string> &vars
36 static tensorflow::Tensor constructVectorInput(
37 const std::unordered_map<
std::string, std::vector<double>> &varMap,
38 const std::vector<std::string> &vars
41 void initTFSession()
const;
45 mutable std::shared_ptr<tensorflow::Session>
tfSession;
def predict(model, test_dir, N, trace, info)
static QMap< QCString, MemberDef * > varMap
std::shared_ptr< tensorflow::Session > tfSession