From 603181634ae457ac68bb6a19216f1296c94cafda Mon Sep 17 00:00:00 2001 From: Eunju Yang Date: Fri, 27 Dec 2024 17:58:24 +0900 Subject: [PATCH] [ log ] Add error log for setOptimizer failure - Add ml_loge for setOptimizer failure Signed-off-by: Eunju Yang --- nntrainer/models/neuralnet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nntrainer/models/neuralnet.cpp b/nntrainer/models/neuralnet.cpp index 9ed65bf0a..6128cf060 100644 --- a/nntrainer/models/neuralnet.cpp +++ b/nntrainer/models/neuralnet.cpp @@ -1323,6 +1323,7 @@ NeuralNetwork::getUnsortedLayers(const std::string &input_layer, int NeuralNetwork::setOptimizer( std::shared_ptr optimizer) { if (initialized) { + ml_loge("Cannot set optimizer if already initialized"); return ML_ERROR_NOT_SUPPORTED; }