ONE - On-device Neural Engine
|
#include <ParallelScheduler.h>
Public Member Functions | |
ParallelScheduler (const BackendSet &backends) | |
Constructs ParallelScheduler object. | |
void | assign (std::unique_ptr< IFunction > &&fn, const backend::Backend *backend) |
Assign a task to the given backend. | |
void | finish () |
Block until all jobs are finished. | |
Definition at line 32 of file ParallelScheduler.h.
onert::exec::ParallelScheduler::ParallelScheduler | ( | const BackendSet & | backends | ) |
Constructs ParallelScheduler object.
backends | Backend set |
Definition at line 29 of file ParallelScheduler.cc.
void onert::exec::ParallelScheduler::assign | ( | std::unique_ptr< IFunction > && | fn, |
const backend::Backend * | backend | ||
) |
Assign a task to the given backend.
[in] | fn | Function to be assigned |
[in] | fn | Target backend |
Definition at line 39 of file ParallelScheduler.cc.
void onert::exec::ParallelScheduler::finish | ( | ) |
Block until all jobs are finished.
Definition at line 46 of file ParallelScheduler.cc.