`Job` should not have a backend, and it is never used.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
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++;
});
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(); }
* @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
*/
*/
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