mv_machine_learning: fix build error
authorInki Dae <inki.dae@samsung.com>
Tue, 6 Dec 2022 05:03:29 +0000 (14:03 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 14 Dec 2022 06:33:18 +0000 (15:33 +0900)
[Issue type] : bug fix

Fixed a build error due to using not supported interface - GetWeightWithLayer
- of training engine interface by dropping the relevant code.

This code will be revisited after updating training engine interface later.

Change-Id: Id50415de47022b189933477cd69495639907690a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/training/src/training_model.cpp

index 6b11f05..a1219fd 100644 (file)
@@ -119,10 +119,7 @@ void TrainingModel::Train()
 
 void TrainingModel::getWeights(float **weights, size_t *size, std::string name)
 {
-       int ret = _training->GetWeightWithLayer(_model.get(), weights, size, name);
-       if (ret != TRAINING_ENGINE_ERROR_NONE)
-               throw InvalidOperation("Fail to get weights.", ret);
-
+       // TODO.
 }
 
 void TrainingModel::RemoveModel()