[graph] Extend lifespan of model outputs
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 3 Dec 2021 12:11:06 +0000 (21:11 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 3 Dec 2021 12:51:57 +0000 (21:51 +0900)
commit721e54d31790f75601875f1c445cc35a085d1804
tree1e2f268532545b9d9d8d9a0864c9610d2843c83b
parent4924fa10fb254f1d93e553a8e4648fe6b8e627aa
[graph] Extend lifespan of model outputs

The lifespan of model outputs is extended to the max forward exec order
so that the outputs remain valid till the full forward is completed and
they can be checked in the training or even inference.

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