From: Piotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics Date: Thu, 24 Feb 2022 07:28:42 +0000 (+0100) Subject: [ML] Fix test break for MLSingleshot X-Git-Tag: submit/tizen/20220224.073854^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be1e0310d152945a3b99ce619b5e087426a852ac;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [ML] Fix test break for MLSingleshot [Verification] Code compiles. TCT passrate: * ml-tizen 100% * mlpipeline-tizen 100% * mlsingleshot-tizen 100% Change-Id: Ia2ebef7a46600537946f308be5375e274f40df46 --- diff --git a/src/ml/ml_instance.cc b/src/ml/ml_instance.cc index a59ffc84..0ba4cc98 100644 --- a/src/ml/ml_instance.cc +++ b/src/ml/ml_instance.cc @@ -50,7 +50,8 @@ const std::string kInTensorsInfo = "inTensorsInfo"; const std::string kIsDynamicMode = "isDynamicMode"; const std::string kListenerName = "listenerName"; const std::string kLocation = "location"; -const std::string kModelPath = "configPath"; +const std::string kModelPath = "modelPath"; +const std::string kConfigPath = "configPath"; const std::string kName = "name"; const std::string kNnfw = "nnfw"; const std::string kCustomRequirement = "customRequirement"; @@ -1833,11 +1834,11 @@ void MlInstance::MLTrainerModelCreate(const picojson::value& args, picojson::obj ScopeLogger("args: %s", args.serialize().c_str()); int id = -1; PlatformResult result; - if (args.contains(kModelPath)) { + if (args.contains(kConfigPath)) { // create model with config file - CHECK_ARGS(args, kModelPath, std::string, out); - const auto& config_path = - common::tools::ConvertUriToPath(args.get(kModelPath).get()); + CHECK_ARGS(args, kConfigPath, std::string, out); + const auto& config_path = common::tools::ConvertUriToPath( + args.get(kConfigPath).get()); CHECK_STORAGE_ACCESS(config_path, &out); result = trainer_manager_.CreateModel(id, config_path);