From: Parichay Kapoor Date: Tue, 21 Jul 2020 09:55:07 +0000 (+0900) Subject: [neuralnet] Bug fix for setTrainConfig X-Git-Tag: accepted/tizen/unified/20200728.135447~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=291b30e8bf2bdf18a6cac6cc3c5655d1a56e1a8e;p=platform%2Fcore%2Fml%2Fnntrainer.git [neuralnet] Bug fix for setTrainConfig Add bug fix for setTrainConfig Break in switch in default case was hiding the error Signed-off-by: Parichay Kapoor --- diff --git a/nntrainer/src/neuralnet.cpp b/nntrainer/src/neuralnet.cpp index 8bf6795..e852a95 100644 --- a/nntrainer/src/neuralnet.cpp +++ b/nntrainer/src/neuralnet.cpp @@ -450,7 +450,7 @@ int NeuralNetwork::setTrainConfig(std::vector values) { default: ml_loge("Error: Unknown Network Property Key"); status = ML_ERROR_INVALID_PARAMETER; - break; + return status; } }