|
| void | init (std::vector< std::string > graphPaths, DataType precision, AffinityPolicy affinityPolicy=AFFINITY_CPU_HIGH_PERFORMANCE, int cpuThreads=1, bool useGPU=true) |
| | initialize flow More...
|
| |
| void | enqueue (Task task) |
| |
| std::vector< Task > | dequeue (bool block=false) |
| |
| unsigned int | size () |
| | get the current number of unfinished tasks More...
|
| |
Definition at line 36 of file flow.h.
◆ dequeue()
| std::vector<Task> Flow::dequeue |
( |
bool |
block = false | ) |
|
get already finished tasks
- Parameters
-
| block | set to blocked until all tasks has finished(default is false) |
- Returns
- finishedTasks: array of already finished tasks
◆ enqueue()
| void Flow::enqueue |
( |
Task |
task | ) |
|
◆ init()
| void Flow::init |
( |
std::vector< std::string > |
graphPaths, |
|
|
DataType |
precision, |
|
|
AffinityPolicy |
affinityPolicy = AFFINITY_CPU_HIGH_PERFORMANCE, |
|
|
int |
cpuThreads = 1, |
|
|
bool |
useGPU = true |
|
) |
| |
initialize flow
- Parameters
-
| graphPaths | predefined flow graph file path array |
| precision | data process precision |
| affinityPolicy | CPU affinity setting |
| cpuThreads | the number of CPU cores to use(default is 1) |
| useGPU | whether to use ARM GPU(default is false) |
- Returns
◆ size()
| unsigned int Flow::size |
( |
| ) |
|
get the current number of unfinished tasks
- Returns
- size : the number of unfinished tasks
The documentation for this class was generated from the following file: