Skip to content

Commit

Permalink
[ log ] Add error log for setOptimizer failure
Browse files Browse the repository at this point in the history
- Add ml_loge for setOptimizer failure

Signed-off-by: Eunju Yang <[email protected]>
  • Loading branch information
EunjuYang committed Dec 27, 2024
1 parent 24a868d commit 6031816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nntrainer/models/neuralnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ NeuralNetwork::getUnsortedLayers(const std::string &input_layer,
int NeuralNetwork::setOptimizer(
std::shared_ptr<ml::train::Optimizer> optimizer) {
if (initialized) {
ml_loge("Cannot set optimizer if already initialized");
return ML_ERROR_NOT_SUPPORTED;
}

Expand Down

0 comments on commit 6031816

Please sign in to comment.