From: Marcin Kaminski Date: Fri, 18 Feb 2022 19:20:32 +0000 (+0100) Subject: [ML][Train] Remove denial of Model modification X-Git-Tag: submit/tizen/20220223.080409~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3cb7ccc6fc3d97a5507856d42269c798479d3d4;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [ML][Train] Remove denial of Model modification Changes: - removed check and error reporting for setting new dataset after Model has been compiled and trained as it should be possible to train with new data. Change-Id: I144b45979b83ccaa101cf356a393271fdc352a90 --- diff --git a/src/ml/ml_trainer_manager.cc b/src/ml/ml_trainer_manager.cc index 8f87bcc0..30703585 100644 --- a/src/ml/ml_trainer_manager.cc +++ b/src/ml/ml_trainer_manager.cc @@ -313,13 +313,6 @@ PlatformResult TrainerManager::ModelSetDataset(int id, int datasetId) { auto& dataset = datasets_[datasetId]; - if (model->isCompiled()) { - LoggerE("Modification of compiled model"); - model->instanceLock.unlock(); - return PlatformResult(ErrorCode::INVALID_STATE_ERR, - "Modification of compiled model not allowed"); - } - int ret_val = ml_train_model_set_dataset(model->getNative(), dataset->getNative()); if (ret_val != ML_ERROR_NONE) {