Enable ModelBuilder::sortIntoRunOrder() (#435)
author김수진/동작제어Lab(SR)/Engineer/삼성전자 <sjsujin.kim@samsung.com>
Wed, 4 Apr 2018 13:44:12 +0000 (22:44 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Wed, 4 Apr 2018 13:44:12 +0000 (22:44 +0900)
This commit enables ModelBuilder::sortIntoRunOrder() which is missed in implementation.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
src/runtime/ref/nn/runtime/ModelBuilder.cpp

index 12d4875..741498a 100644 (file)
@@ -295,8 +295,6 @@ int ModelBuilder::finish() {
 }
 
 void ModelBuilder::sortIntoRunOrder() {
-    // Dummy Implementation
-#if 0
     // Tracks the operations that can be executed.
     std::vector<uint32_t> opsReadyToRun;
     std::vector<Operation> runOrder;
@@ -341,8 +339,8 @@ void ModelBuilder::sortIntoRunOrder() {
         }
     }
     mOperations = runOrder;
-#endif
 }
+
 void ModelBuilder::setHidlModel(Model* model) const {
     model->operands = mOperands;
     model->operations = mOperations;