22 #ifndef FLOW_INCLUDE_FLOW_H_ 23 #define FLOW_INCLUDE_FLOW_H_ 52 void init(std::vector<std::string> graphPaths,
54 AffinityPolicy affinityPolicy = AFFINITY_CPU_HIGH_PERFORMANCE,
72 std::vector<Task>
dequeue(
bool block =
false);
82 Schedule<flow::GraphParameter, Node, Tensor> schedule;
83 std::queue<std::shared_ptr<Task>> tasks;
85 #endif // FLOW_INCLUDE_FLOW_H_ unsigned int size()
get the current number of unfinished tasks
optional string precision
std::vector< Task > dequeue(bool block=false)
void init(std::vector< std::string > graphPaths, DataType precision, AffinityPolicy affinityPolicy=AFFINITY_CPU_HIGH_PERFORMANCE, int cpuThreads=1, bool useGPU=true)
initialize flow