1 #ifndef _NNDEPLOY_DAG_GRAPH_RUNNER_H_
2 #define _NNDEPLOY_DAG_GRAPH_RUNNER_H_
43 std::shared_ptr<GraphRunnerResult>
run(
const std::string& graph_json_str,
44 const std::string& name =
"graph_runner",
45 const std::string& task_id =
"task_id");
54 const std::string& value);
56 std::map<std::string, std::map<std::string, std::string>> node_value_map);
67 const std::string& name);
75 std::shared_ptr<Graph> graph_;
76 bool is_json_file_ =
true;
80 bool is_time_profile_ =
true;
81 bool is_debug_ =
false;
83 bool is_loop_max_flag_ =
true;
84 std::map<std::string, std::map<std::string, std::string>> node_value_map_;
void set_dump(bool is_dump)
void set_node_value(const std::string &node_name, const std::string &key, const std::string &value)
void set_node_value(std::map< std::string, std::map< std::string, std::string >> node_value_map)
void set_time_profile(bool is_time_profile)
void set_debug(bool is_debug)
void set_parallel_type(base::ParallelType parallel_type)
std::shared_ptr< GraphRunnerResult > run(const std::string &graph_json_str, const std::string &name="graph_runner", const std::string &task_id="task_id")
运行图计算
void set_loop_max_flag(bool is_loop_max_flag)
void set_json_file(bool is_json_file)
base::Status buildGraph(const std::string &graph_json_str, const std::string &name)
构建图对象
#define NNDEPLOY_CC_API
api
std::map< std::string, std::shared_ptr< RunStatus > > run_status_map
std::map< std::string, float > time_profiler_map
std::vector< base::Any > results