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
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) {