24.02.1
|
Registry holding all the supported backends. More...
#include <BackendRegistry.h>
Public Member Functions | |
IDeviceBackend * | find_backend (Target target) |
Finds a backend in the registry. More... | |
IDeviceBackend & | get_backend (Target target) |
Get a backend from the registry. More... | |
bool | contains (Target target) const |
Checks if a backend for a given target exists. More... | |
const std::map< Target, std::unique_ptr< IDeviceBackend > > & | backends () const |
Backends accessor. More... | |
template<typename T > | |
void | add_backend (Target target) |
Registers a backend to the registry. More... | |
Static Public Member Functions | |
static BackendRegistry & | get () |
Gets backend registry instance. More... | |
Registry holding all the supported backends.
Definition at line 40 of file BackendRegistry.h.
|
inline |
Registers a backend to the registry.
[in] | target | Execution target to register for |
Definition at line 93 of file BackendRegistry.h.
Referenced by BackendRegistrar< T >::BackendRegistrar().
const std::map< Target, std::unique_ptr< IDeviceBackend > > & backends | ( | ) | const |
Backends accessor.
Definition at line 64 of file BackendRegistry.cpp.
bool contains | ( | Target | target | ) | const |
Checks if a backend for a given target exists.
[in] | target | Execution target |
Definition at line 58 of file BackendRegistry.cpp.
Referenced by arm_compute::graph::is_target_supported().
IDeviceBackend * find_backend | ( | Target | target | ) |
Finds a backend in the registry.
[in] | target | Backend target |
Definition at line 44 of file BackendRegistry.cpp.
References ARM_COMPUTE_ERROR_ON.
Referenced by arm_compute::graph::is_target_supported(), and arm_compute::graph::setup_requested_backend_context().
|
static |
Gets backend registry instance.
Definition at line 38 of file BackendRegistry.cpp.
Referenced by BackendRegistrar< T >::BackendRegistrar(), arm_compute::graph::detail::configure_all_nodes(), arm_compute::graph::detail::configure_all_tensors(), arm_compute::graph::configure_tensor(), arm_compute::graph::is_target_supported(), GroupedConvolutionMutator::mutate(), DepthConcatSubTensorMutator::mutate(), SplitLayerSubTensorMutator::mutate(), arm_compute::graph::release_default_graph_context(), arm_compute::graph::setup_requested_backend_context(), arm_compute::graph::sync_backends(), and arm_compute::graph::detail::validate_all_nodes().
IDeviceBackend & get_backend | ( | Target | target | ) |
Get a backend from the registry.
The backend must be present and supported.
[in] | target | Backend target |
Definition at line 50 of file BackendRegistry.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, and IDeviceBackend::is_backend_supported().
Referenced by arm_compute::graph::detail::configure_all_nodes(), arm_compute::graph::detail::configure_all_tensors(), arm_compute::graph::configure_tensor(), DepthConcatSubTensorMutator::mutate(), SplitLayerSubTensorMutator::mutate(), GroupedConvolutionMutator::mutate(), and arm_compute::graph::detail::validate_all_nodes().