24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_GRAPH_BACKEND_REGISTRY_H
25 #define ARM_COMPUTE_GRAPH_BACKEND_REGISTRY_H
76 const std::map<Target, std::unique_ptr<IDeviceBackend>> &
backends()
const;
89 std::map<Target, std::unique_ptr<IDeviceBackend>> _registered_backends;
95 _registered_backends[target] = std::make_unique<T>();
Device backend interface.
bool contains(Target target) const
Checks if a backend for a given target exists.
const std::map< Target, std::unique_ptr< IDeviceBackend > > & backends() const
Backends accessor.
Copyright (c) 2017-2024 Arm Limited.
IDeviceBackend * find_backend(Target target)
Finds a backend in the registry.
void add_backend(Target target)
Registers a backend to the registry.
Registry holding all the supported backends.
IDeviceBackend & get_backend(Target target)
Get a backend from the registry.
static BackendRegistry & get()
Gets backend registry instance.