aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2021-01-28 14:26:27 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2021-01-28 14:42:14 +0000
commit01824732d0d275b98e32c90ff5d614dd5905f206 (patch)
tree616fb13c2184dcae7fbc43bdad214176ee67868b
parentb3021435ad91e494af01ca0778915877dc0780c0 (diff)
downloadandroid-nn-driver-01824732d0d275b98e32c90ff5d614dd5905f206.tar.gz
IVGCVSW-4874 Provide LayerSupportHandle to frontend users
* Update to use dot operator for IsXXXLayerSupported() * Call LayerSupportHandle member funciton to check is Backend Registered Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: If0b9876068db8957a8bdb690ad323cd8dce544a4 !armnn:4924
-rw-r--r--ConversionUtils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp
index c147684..c484f33 100644
--- a/ConversionUtils.hpp
+++ b/ConversionUtils.hpp
@@ -138,11 +138,11 @@ try \
for (auto&& backendId : backends) \
{ \
auto layerSupportObject = armnn::GetILayerSupportByBackendId(backendId); \
- if (layerSupportObject) \
+ if (layerSupportObject.IsBackendRegistered()) \
{ \
std::string reasonIfUnsupported; \
supported = \
- layerSupportObject->func(__VA_ARGS__, armnn::Optional<std::string&>(reasonIfUnsupported)); \
+ layerSupportObject.func(__VA_ARGS__, armnn::Optional<std::string&>(reasonIfUnsupported)); \
if (supported) \
{ \
break; \