[neurun] Remove member backend of Job (#9281)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Fri, 29 Nov 2019 01:24:41 +0000 (10:24 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 29 Nov 2019 01:24:41 +0000 (10:24 +0900)
`Job` should not have a backend, and it is never used.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtime/neurun/core/src/exec/DataflowExecutor.cc
runtime/neurun/core/src/exec/Job.cc
runtime/neurun/core/src/exec/Job.h

index 8b3695d..32e68b0 100644 (file)
@@ -92,8 +92,7 @@ DataflowExecutor::DataflowExecutor(const graph::Graph &graph,
     VERBOSE(DataflowExecutor) << "Create a job #" << next_job_index << " with SubgraphIndex "
                               << subg_index.value() << std::endl;
     _finished_jobs.emplace_back(
-        nnfw::cpp14::make_unique<Job>(next_job_index, _code_map.at(subg_index).get(),
-                                      _graph.getLowerInfo()->operation.at(subg_index)->backend()));
+        nnfw::cpp14::make_unique<Job>(next_job_index, _code_map.at(subg_index).get()));
     subgraph_to_job[subg_index] = next_job_index++;
   });
 
index 6ce3a84..ba02daf 100644 (file)
@@ -25,10 +25,7 @@ namespace neurun
 namespace exec
 {
 
-Job::Job(uint32_t index, IFunction *fn, const backend::Backend *backend)
-    : _index{index}, _fn{fn}, _backend{backend}
-{
-}
+Job::Job(uint32_t index, IFunction *fn) : _index{index}, _fn{fn} {}
 
 void Job::run() { _fn->run(); }
 
index 108f39e..cf3a185 100644 (file)
@@ -40,7 +40,7 @@ public:
    * @param inputs Input operand list
    * @param outputs Output operand list
    */
-  Job(uint32_t index, IFunction *fn, const backend::Backend *backend);
+  Job(uint32_t index, IFunction *fn);
   /**
    * @brief Execute the compiled code
    */
@@ -58,17 +58,9 @@ public:
    */
   IFunction *fn() { return _fn; }
 
-  /**
-   * @brief Return the backend
-   *
-   * @return Backend
-   */
-  const backend::Backend *backend() { return _backend; }
-
 private:
   uint32_t _index;
   IFunction *_fn;
-  const backend::Backend *_backend;
 };
 
 } // namespace exec