From: jijoong.moon Date: Thu, 21 Apr 2022 01:19:13 +0000 (+0900) Subject: [ Android ] fix the warnning message X-Git-Tag: accepted/tizen/6.0/unified/20220610.012600~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b576f9627f50c8ad202450f2d5967089fef43e3d;p=platform%2Fcore%2Fml%2Fnntrainer.git [ Android ] fix the warnning message This patch fixs the warnning message for the android **Self evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: jijoong.moon --- diff --git a/nntrainer/optimizers/adam.h b/nntrainer/optimizers/adam.h index af60607..4636c39 100644 --- a/nntrainer/optimizers/adam.h +++ b/nntrainer/optimizers/adam.h @@ -84,7 +84,7 @@ public: * @copydoc Optimizer::getDefaultLearningRate() * */ - double getDefaultLearningRate() const { return 0.001; } + double getDefaultLearningRate() const override { return 0.001; } /** * @copydoc applyGradient(RunOptimizerContext &context) @@ -115,7 +115,6 @@ public: void setProperty(const std::vector &values) override; private: - std::tuple adam_props; /** diff --git a/nntrainer/optimizers/sgd.h b/nntrainer/optimizers/sgd.h index a8e0393..7e7d3c7 100644 --- a/nntrainer/optimizers/sgd.h +++ b/nntrainer/optimizers/sgd.h @@ -34,17 +34,17 @@ public: * @copydoc Optimizer::getDefaultLearningRate() * */ - double getDefaultLearningRate() const { return 0.0001; } + double getDefaultLearningRate() const override { return 0.0001; } /** * @copydoc applyGradient(RunOptimizerContext &context) */ - void applyGradient(RunOptimizerContext &context); + void applyGradient(RunOptimizerContext &context) override; /** * @copydoc Optimizer::getType() */ - const std::string getType() const { return SGD::type; } + const std::string getType() const override { return SGD::type; } /** * @copydoc Optimizer::getOptimizerVariableDim(const TensorDim &dim)