From d47587edd739fee189d336c68cd4b650c0f8a45c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EA=B9=80=EC=88=98=EC=A7=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84?= =?utf8?q?=EC=9E=90?= Date: Tue, 10 Apr 2018 17:27:47 +0900 Subject: [PATCH] Remove unused functions and includes in ModelBuilder (#512) This commit removes unused functions and includes in ModelBuilder. Signed-off-by: sjsujinkim --- src/runtime/ref/nn/runtime/ModelBuilder.cpp | 6 ------ src/runtime/ref/nn/runtime/ModelBuilder.h | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/src/runtime/ref/nn/runtime/ModelBuilder.cpp b/src/runtime/ref/nn/runtime/ModelBuilder.cpp index 741498a..e4ce425 100644 --- a/src/runtime/ref/nn/runtime/ModelBuilder.cpp +++ b/src/runtime/ref/nn/runtime/ModelBuilder.cpp @@ -19,12 +19,6 @@ #include "CompilationBuilder.h" -#if 0 -#define LOG_TAG "ModelBuilder" - -#include -#include -#endif namespace android { namespace nn { diff --git a/src/runtime/ref/nn/runtime/ModelBuilder.h b/src/runtime/ref/nn/runtime/ModelBuilder.h index dd8c67d..1c3a7a7 100644 --- a/src/runtime/ref/nn/runtime/ModelBuilder.h +++ b/src/runtime/ref/nn/runtime/ModelBuilder.h @@ -78,22 +78,7 @@ public: const uint8_t* getPointerToOperandValue(uint32_t offset) const { return mSmallOperandValues.data() + offset; } -#if 0 // ExecutionPlan is needed. - int partitionTheWork(const std::vector>& devices, - uint32_t preference, ExecutionPlan* plan) const; -#endif private: - // TODO: move partitionTheWork, findBestDeviceForEachOperation, - // sortIntoRunOrder to CompilationBuilder? -#if 0 // Manager.h is needed. - int findBestDeviceForEachOperation(uint32_t preference, - const std::vector>& devices, - const size_t operationCount, - const size_t deviceCount, - std::vector* bestDeviceForOperation) const; - PerformanceInfo getPerformanceInfo(const std::shared_ptr device, - uint32_t operationIndex) const; -#endif // Sorts the operations to be in the correct order for single threaded // node-at-a-time execution. void sortIntoRunOrder(); -- 2.7.4