[Fix/Optimizer] Fix decay_rate application
authorJihoon Lee <jhoon.it.lee@samsung.com>
Wed, 28 Oct 2020 04:56:11 +0000 (13:56 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 2 Nov 2020 06:39:53 +0000 (15:39 +0900)
commitd374b56fdadb00770a3b8c26b98ab3480ed4230c
tree436603ded1ee440bfe05d077fe13bb99b98db4ae
parentc43957c458c7d5e3f905b0ccf7f59c2aa0aa4332
[Fix/Optimizer] Fix decay_rate application

There was a bug that decay_rate were always applied when it is set to
default value. Becuase `decay_steps != -1` was evaluated to true.

This patch fixes the issue.

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
nntrainer/include/optimizer_internal.h
nntrainer/src/optimizer.cpp