[layernode] Bug fix for loss
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 28 Sep 2021 05:37:26 +0000 (14:37 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 1 Oct 2021 02:59:03 +0000 (11:59 +0900)
commit2778e7c512644e2dd3bfa73d0b4556fbfb58788e
tree84b2410e7885d6495813030f9fa620113a4f03e1
parent474c5917896eebb83657aff1c86faf11c15b302d
[layernode] Bug fix for loss

getLoss() was adding loss from the loss layer to the total loss of the
layer with every call to getLoss() which was resulting in wrong results.
This patch adds the corresponding fix.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/layers/layer_node.cpp