[weight/gradients] Initialize Weights once only
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 3 Jul 2020 07:32:46 +0000 (16:32 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 6 Jul 2020 01:23:56 +0000 (10:23 +0900)
commit4cec0a7857a373f3252fdf62d2123c9234b2ea25
tree5fc3a471b732db9c39954dbec30f3455935660bf
parent81b73b2df7846b3be8f6fd341b297b4841882c35
[weight/gradients] Initialize Weights once only

Since layers only store weights reference, store them once than doing it in every iteration

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/include/layer.h
nntrainer/src/conv2d_layer.cpp
nntrainer/src/fc_layer.cpp