[neurun] Introduce FirstfitAllocator (#3458)
author김용섭/동작제어Lab(SR)/Engineer/삼성전자 <yons.kim@samsung.com>
Tue, 6 Nov 2018 09:15:59 +0000 (18:15 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 6 Nov 2018 09:15:59 +0000 (18:15 +0900)
commit3a68971567b9094f566edc833a6fb8c1845d8b49
treeccbb7f66684d8e8cf8743f38e125205c5aa8e65d
parenta27ff7f598a5664880a8327dcfa8abd7b06ea2be
[neurun] Introduce FirstfitAllocator (#3458)

* [neurun] Introduce FirstfitAllocator

Introduces FirstfitAllocator instead of BumpAllocator. This allocator
allocates a block for tensor at the first-fit offset.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
* Revise allocate() of FirstfitAllocator

- Adds comment for description of allocate()
- Removes inner lambda allocateBlock() in allocate()

* Change the name from Firstfit to FirstFit

* Fix typo

* Adds comment for _alloc_table
runtimes/neurun/src/backend/cpu/MemoryAllocator.cc
runtimes/neurun/src/backend/cpu/MemoryAllocator.h
runtimes/neurun/src/backend/cpu/TensorBuilder.cc
runtimes/neurun/test/backend/cpu/MemoryAllocator.cc