From 2b69430727960e92d3305beba9566e4fabda597e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 29 Nov 2019 10:24:41 +0900 Subject: [PATCH] [neurun] Remove member backend of Job (#9281) `Job` should not have a backend, and it is never used. Signed-off-by: Hanjoung Lee --- runtime/neurun/core/src/exec/DataflowExecutor.cc | 3 +-- runtime/neurun/core/src/exec/Job.cc | 5 +---- runtime/neurun/core/src/exec/Job.h | 10 +--------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/runtime/neurun/core/src/exec/DataflowExecutor.cc b/runtime/neurun/core/src/exec/DataflowExecutor.cc index 8b3695d..32e68b0 100644 --- a/runtime/neurun/core/src/exec/DataflowExecutor.cc +++ b/runtime/neurun/core/src/exec/DataflowExecutor.cc @@ -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(next_job_index, _code_map.at(subg_index).get(), - _graph.getLowerInfo()->operation.at(subg_index)->backend())); + nnfw::cpp14::make_unique(next_job_index, _code_map.at(subg_index).get())); subgraph_to_job[subg_index] = next_job_index++; }); diff --git a/runtime/neurun/core/src/exec/Job.cc b/runtime/neurun/core/src/exec/Job.cc index 6ce3a84..ba02daf 100644 --- a/runtime/neurun/core/src/exec/Job.cc +++ b/runtime/neurun/core/src/exec/Job.cc @@ -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(); } diff --git a/runtime/neurun/core/src/exec/Job.h b/runtime/neurun/core/src/exec/Job.h index 108f39e..cf3a185 100644 --- a/runtime/neurun/core/src/exec/Job.h +++ b/runtime/neurun/core/src/exec/Job.h @@ -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 -- 2.7.4