[weight] Move apply gradient to weight
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 29 Jan 2021 11:34:18 +0000 (20:34 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 3 Mar 2021 00:46:41 +0000 (09:46 +0900)
commit1091126a5f5b5bd2ea6cd9ee5908404d46150cce
tree6a824a8cc099c7274263c085467bcbf7bc692261
parent412f8a0832d10c194ba58d8cc6d44a150ff25fcf
[weight] Move apply gradient to weight

Move apply gradient which will just add the gradient
to the variable multiplied with the gradient.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/layers/conv2d_layer.cpp
nntrainer/layers/fc_layer.cpp
nntrainer/optimizers/optimizer.cpp
nntrainer/optimizers/sgd.cpp
nntrainer/tensor/weight.h