Fix a failure to set RunTimePoolInfo (#355)
author장지섭/동작제어Lab(SR)/Engineer/삼성전자 <jiseob.jang@samsung.com>
Fri, 30 Mar 2018 08:32:40 +0000 (17:32 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Fri, 30 Mar 2018 08:32:40 +0000 (17:32 +0900)
* Fix creating ashmem fail

This commit fixes creating ashmem fail.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
* Fix the fail to set RunTimePoolInfo

This commit fixes the fail to set RunTimePoolInfo.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
src/runtime/ref/nn/common/CpuExecutor.cpp

index 9650824..6fa55b2 100644 (file)
@@ -29,8 +29,6 @@ namespace nn {
 // TODO: short term, make share memory mapping and updating a utility function.
 // TODO: long term, implement mmap_fd as a hidl IMemory service.
 bool RunTimePoolInfo::set(const hidl_memory& hidlMemory) {
-    // TODO-NNRT: Implement this!
-    return false;
     this->hidlMemory = hidlMemory;
     auto memType = hidlMemory.name();
     if (memType == "ashmem") {