24.02.1
|
#include <GraphManager.h>
Public Member Functions | |
GraphManager () | |
Default Constructor. More... | |
GraphManager (const GraphManager &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
GraphManager (GraphManager &&)=default | |
Default move constructor. More... | |
GraphManager & | operator= (const GraphManager &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
GraphManager & | operator= (GraphManager &&)=default |
Default move assignment operator. More... | |
void | finalize_graph (Graph &graph, GraphContext &ctx, PassManager &pm, Target target) |
Finalizes a given graph. More... | |
void | execute_graph (Graph &graph) |
Executes a graph. More... | |
void | invalidate_graph (Graph &graph) |
Invalidates the graph execution workload. More... | |
Graph manager class.
Manages a list of graphs along with their resources
Definition at line 45 of file GraphManager.h.
GraphManager | ( | ) |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void execute_graph | ( | Graph & | graph | ) |
Executes a graph.
[in] | graph | Graph to execute |
Definition at line 124 of file GraphManager.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL, arm_compute::graph::detail::call_all_input_node_accessors(), arm_compute::graph::detail::call_all_output_node_accessors(), arm_compute::graph::detail::call_all_tasks(), arm_compute::mlgo::parser::end(), and Graph::id().
Referenced by Stream::run().
void finalize_graph | ( | Graph & | graph, |
GraphContext & | ctx, | ||
PassManager & | pm, | ||
Target | target | ||
) |
Finalizes a given graph.
[in] | graph | Graph to finalize |
[in] | ctx | Graph context |
[in] | pm | Pass manager to use for any optimization passes |
[in] | target | Execution target (Single target execution is currently supported) |
Definition at line 46 of file GraphManager.cpp.
References arm_compute::graph::detail::allocate_all_tensors(), arm_compute::graph::detail::allocate_const_tensors(), ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_MSG, ARM_COMPUTE_LOG_GRAPH_INFO, ARM_COMPUTE_LOG_GRAPH_VERBOSE, ARM_COMPUTE_LOG_INFO_WITH_FUNCNAME_ACL, IGraphMutator::Backend, GraphConfig::backend_type, arm_compute::graph::detail::call_all_const_node_accessors(), arm_compute::graph::CL, arm_compute::Clvk, arm_compute::graph::CLVK, GraphContext::config(), arm_compute::graph::detail::configure_all_nodes(), arm_compute::graph::detail::configure_all_tensors(), arm_compute::graph::detail::configure_transition_manager(), arm_compute::graph::dfs(), arm_compute::mlgo::parser::end(), GraphContext::finalize(), arm_compute::graph::force_target_to_graph(), arm_compute::graph::get_default_target(), Graph::id(), IGraphMutator::IR, arm_compute::graph::is_target_supported(), arm_compute::graph::detail::prepare_all_tasks(), PassManager::run_type(), GraphContext::set_config(), arm_compute::graph::setup_requested_backend_context(), GraphConfig::use_transition_memory_manager, and arm_compute::graph::detail::validate_all_nodes().
Referenced by Stream::finalize().
void invalidate_graph | ( | Graph & | graph | ) |
Invalidates the graph execution workload.
[in] | graph | Graph to invalidate |
Definition at line 151 of file GraphManager.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, arm_compute::mlgo::parser::end(), and Graph::id().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.