23.11
|
Go to the documentation of this file.
51 if (_workloads.find(graph.
id()) !=
std::end(_workloads))
60 Target forced_target = target;
90 std::vector<NodeID> topological_sorted_nodes =
dfs(graph);
120 _workloads.insert(std::make_pair(graph.
id(), std::move(workload)));
129 auto it = _workloads.find(graph.
id());
153 auto it = _workloads.find(graph.
id());
156 _workloads.erase(it);
#define ARM_COMPUTE_LOG_GRAPH_INFO(x)
GraphManager()
Default Constructor.
#define ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL(msg)
const GraphConfig & config() const
Graph configuration accessor.
@ CL
OpenCL capable target device.
void force_target_to_graph(Graph &g, Target target)
Forces a single target to all graph constructs.
void invalidate_graph(Graph &graph)
Invalidates the graph execution workload.
void allocate_const_tensors(Graph &g)
Allocates const tensor of a given graph.
bool call_all_output_node_accessors(ExecutionWorkload &workload)
Call all output node accessors.
void setup_requested_backend_context(GraphContext &ctx, Target target)
Setups requested backend context if it exists, is supported and hasn't been initialized already.
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
void prepare_all_tasks(ExecutionWorkload &workload)
Prepares all tasks for execution.
void finalize_graph(Graph &graph, GraphContext &ctx, PassManager &pm, Target target)
Finalizes a given graph.
@ CLVK
CLVK capable target device.
GraphID id() const
Returns graph id.
void finalize()
Finalizes memory managers in graph context.
void configure_all_tensors(Graph &g)
Configures all nodes of a graph.
#define ARM_COMPUTE_LOG_GRAPH_VERBOSE(x)
bool call_all_input_node_accessors(ExecutionWorkload &workload)
Call all input node accessors.
void set_config(const GraphConfig &config)
Sets graph configuration.
Graph configuration structure.
void allocate_all_tensors(Graph &g)
Allocates all tensors of a graph.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
void run_type(Graph &g, IGraphMutator::MutationType type)
Runs a mutation passes of a specific type on a given graph.
std::vector< NodeID > dfs(Graph &g)
Depth first search traversal.
bool is_target_supported(Target target)
Checks if a specific target is supported.
@ Backend
IR specific mutation.
CLBackendType backend_type
CL backend type to use.
void execute_graph(Graph &graph)
Executes a graph.
void validate_all_nodes(Graph &g)
Validates all nodes.
Target get_default_target()
Returns default target for execution.
Copyright (c) 2017-2023 Arm Limited.
bool use_transition_memory_manager
Use a memory manager to manager transition buffer memory.
void end(TokenStream &in, bool &valid)
ExecutionWorkload configure_all_nodes(Graph &g, GraphContext &ctx, const std::vector< NodeID > &node_order)
Configures all nodes of graph.
void call_all_tasks(ExecutionWorkload &workload)
Executes all tasks of a workload.
void configure_transition_manager(Graph &g, GraphContext &ctx, ExecutionWorkload &workload)
Configures transition manager and execution workload.
void call_all_const_node_accessors(Graph &g)
Call all const node accessors.