[Tensor Pool] Add expose/persist concept
authorJihoon Lee <jhoon.it.lee@samsung.com>
Wed, 19 Jan 2022 10:40:02 +0000 (19:40 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 19 Jan 2022 23:31:47 +0000 (08:31 +0900)
commit6f01a34c92bcc58af113ffc20d52d0ba10885dbd
treef2789fba79422204a7d8f3ec1d224df3e149abe2
parent66b03a65443d3eb3fddd917552d82b6a36f1f627
[Tensor Pool] Add expose/persist concept

This patch add expose/persist concept to the tensor pool and manager.

When a tensor is exposed, this means that the tensor is gauranteed to
remain valid max_exec where max_exec is the value passed along allocateTensors(max_exec);

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
nntrainer/graph/network_graph.cpp
nntrainer/tensor/manager.cpp
nntrainer/tensor/manager.h
nntrainer/tensor/tensor_pool.cpp
nntrainer/tensor/tensor_pool.h