[tensor] Add derivatives for dot operation
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 29 Nov 2021 06:20:32 +0000 (15:20 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 3 Dec 2021 05:46:00 +0000 (14:46 +0900)
commit8d32d8a9bd984c3ef406ede54b3515ccced54e39
treeec1b1104796921e154363910f7e813683e45af60
parente125071e79f994e04f45a9ded5c2df8bdc3abc5c
[tensor] Add derivatives for dot operation

Add derivatives for the dot operation as an easier interface to
calculate derivative for a dot operation used in the forward for both
the inputs.
Add the corresponding interface for dot_batched as well.

See Also #1721

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