[tensor] Add name identifier to Tensor
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 12 Aug 2021 10:40:08 +0000 (19:40 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 27 Sep 2021 04:29:43 +0000 (13:29 +0900)
commit49f5cbaacfc394e6db849ee9a2be3424029bd7b2
tree2499c008259d916adbc52943820893a378281728
parent39c658704bf828bb966611fc1798babcce6fa570
[tensor] Add name identifier to Tensor

Move name as an identifier to the tensor.
This name has been mvoed from the Var_Grad object.
Var_Grad now does not contain name itself.

The semantics of name for Tensor currently follows from var-grad:
- empty name is allowed
- repititive names are allowed
Restrictions can and will be added over time.

Resolves #1485

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