[tensor] Split tensor constructor into 2
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 1 Feb 2021 07:26:59 +0000 (16:26 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 5 Feb 2021 01:50:57 +0000 (10:50 +0900)
commit3e45e83163de4ab927641adbb3f5fe39eeaa7521
tree845787fcb2a49461712f5e11cfa03a7271f1e67a
parentd1b6aae4795086a40b380c7ff2c3ece754c1b599
[tensor] Split tensor constructor into 2

Create a new tensor constructor for lazy allocation
than adding the lazy allocation feature to the existing one

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