From 890ad1be4eff1a805fe07667f4044b1d38a07b39 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Wed, 22 Aug 2018 13:44:36 +0100 Subject: COMPMID-1246: Fix bug in handling backends that can't be loaded in the Graph API Change-Id: Iefd175af2f472179d86df5358a1527a79c5666ed Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145182 Reviewed-by: Georgios Pinitas Tested-by: Jenkins --- arm_compute/graph/backends/BackendRegistry.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/graph') diff --git a/arm_compute/graph/backends/BackendRegistry.h b/arm_compute/graph/backends/BackendRegistry.h index 69114ed26d..09aa17f3fb 100644 --- a/arm_compute/graph/backends/BackendRegistry.h +++ b/arm_compute/graph/backends/BackendRegistry.h @@ -53,6 +53,16 @@ public: * @return Pointer to the backend interface if found, else nullptr */ IDeviceBackend *find_backend(Target target); + + /** Get a backend from the registry + * + * The backend must be present and supported. + * + * @param[in] target Backend target + * + * @return Reference to the backend interface + */ + IDeviceBackend &get_backend(Target target); /** Checks if a backend for a given target exists * * @param[in] target Execution target -- cgit v1.2.1