[Interpreter] Introduce buffer allocator and deallocator (#5260)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 24 May 2019 04:01:18 +0000 (13:01 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 24 May 2019 04:01:18 +0000 (13:01 +0900)
commit4d1841780ed3d35cb20bffbc2bb4668cf7739758
treedf22464e4bb6c6c52212de47388aaaa19ffcd09b
parent23dda65f8af3ce273ebb39463686111577b7cb60
[Interpreter] Introduce buffer allocator and deallocator (#5260)

* Introduce introduce buffer allocator and deallocator

Allocate buffer if need for operation output
Deallocate buffer if all uses are finished

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
* Rename allocatedIfNeed to allocatedIfNeeded
runtimes/neurun/core/src/exec/interp/ExecEnv.h
runtimes/neurun/core/src/exec/interp/Interpreter.cc
runtimes/neurun/core/src/exec/interp/operations/Add.cc
runtimes/neurun/test/interp/ExecManager.cc