SourceXtractorPlusPlus  0.16
Please provide a description of the project.
OnnxConfig.cpp
Go to the documentation of this file.
1 
19 #include <boost/program_options.hpp>
20 
21 namespace po = boost::program_options;
22 using namespace Euclid::Configuration;
23 
24 namespace SourceXtractor {
25 
26 static const std::string ML_MEASUREMENT_MODEL{"ml-measurement-model"};
27 
28 OnnxConfig::OnnxConfig(long manager_id) : Configuration(manager_id) {
29 }
30 
32  return {{"ONNX", {
33  {ML_MEASUREMENT_MODEL.c_str(), po::value<std::vector<std::string>>()->multitoken(),
34  "ONNX-format models for machine learning based measurements"}
35  }}};
36 }
37 
38 void OnnxConfig::initialize(const Configuration::Configuration::UserValues& args) {
39  auto i = args.find(ML_MEASUREMENT_MODEL);
40  if (i != args.end()) {
42  }
43 }
44 
45 } // end of namespace SourceXtractor
T c_str(T... args)
std::map< std::string, OptionDescriptionList > getProgramOptions() override
Definition: OnnxConfig.cpp:31
void initialize(const UserValues &args) override
Definition: OnnxConfig.cpp:38
std::vector< std::string > m_onnx_model_paths
Definition: OnnxConfig.h:49
static const std::string ML_MEASUREMENT_MODEL
Definition: OnnxConfig.cpp:26