Remove the original constructor of StepExecutor and parameters (#568)
author김수진/동작제어Lab(SR)/Engineer/삼성전자 <sjsujin.kim@samsung.com>
Fri, 13 Apr 2018 00:33:19 +0000 (09:33 +0900)
committer오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 13 Apr 2018 00:33:19 +0000 (09:33 +0900)
* Remove the original constructor of StepExecutor and parameters

This commit removes the original constructor of StepExecutor, since we use only 2 parameter in our framework.

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
* Remove blank line

src/runtime/ref/nn/runtime/ExecutionBuilder.cpp
src/runtime/ref/nn/runtime/ExecutionBuilder.h

index aca788e..9e0e04a 100644 (file)
@@ -237,14 +237,6 @@ static void setRequestArgumentArray(const std::vector<ModelArgumentInfo>& argume
 }
 
 
-#if 0 // REF-ANN
-StepExecutor::StepExecutor(const ExecutionBuilder* executionBuilder,
-                           const ModelBuilder* model,
-                           sp<IDevice> driver, sp<IPreparedModel> preparedModel) :
-    mExecutionBuilder(executionBuilder), mModel(model),
-    mDriver(driver), mPreparedModel(preparedModel),
-    mInputs(model->inputCount()), mOutputs(model->outputCount()) {}
-#endif // REF-ANN
 StepExecutor::StepExecutor(const ExecutionBuilder* executionBuilder, const ModelBuilder* model)
                           : mExecutionBuilder(executionBuilder), mModel(model) {}
 
index e42e3af..9e2f05a 100644 (file)
@@ -110,22 +110,12 @@ private:
 // on the CPU).
 class StepExecutor {
 // TODO-NNRT: Consider removing StepExecutor completely if it's not necessary
-#if 0 // REF-ANN
 public:
     // executionBuilder
     //     Describes the full (possibly multiple-"step") execution.
     // model
     //     The model to be executed by the executor.  Possibly a
     //     submodel of the model from executionBuilder.
-    // driver, preparedModel
-    //     The device on which to execute the "step", and the prepared
-    //     model to execute on that device.  (Both are nullptr in the
-    //     case of CPU.)
-    StepExecutor(const ExecutionBuilder* executionBuilder,
-                 const ModelBuilder* model,
-                 sp<IDevice> driver, sp<IPreparedModel> preparedModel);
-#endif
-public:
     StepExecutor(const ExecutionBuilder* executionBuilder, const ModelBuilder* model);
     // Map inputs and outputs from ExecutionBuilder to StepExecutor,
     // in the case where we have a single-"step" execution (i.e., the executor