[graph/manager] Enable memory v1 optimizations
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 3 Sep 2021 08:59:21 +0000 (17:59 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 5 Oct 2021 11:48:57 +0000 (20:48 +0900)
commit6822abb2d01d9af34e9942e9b3bf69e12418bab8
tree94db48e86af56726f80af31e7b0bc7fda3198480
parentf14294bef9c6859db1f2350ac0105e9c98f98446
[graph/manager] Enable memory v1 optimizations

This patch adds interface to enable memory optimizations with the neural
network. Enabling the interface changes the planner being used for the
memory allocation.
With this patch, OptimizedV1Planner is put to use when enabling
optimizations.

Unittest of models is updated to disable optimizations in the
non-optimized test cases.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
jni/Android.mk
nntrainer/graph/network_graph.h
nntrainer/models/neuralnet.h
nntrainer/tensor/manager.cpp
nntrainer/tensor/manager.h
nntrainer/tensor/memory_pool.cpp
nntrainer/tensor/tensor_pool.cpp
test/unittest/unittest_nntrainer_models.cpp