diff options
author | Francis Murtagh <francis.murtagh@arm.com> | 2021-01-28 14:26:27 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2021-01-28 14:42:14 +0000 |
commit | 01824732d0d275b98e32c90ff5d614dd5905f206 (patch) | |
tree | 616fb13c2184dcae7fbc43bdad214176ee67868b | |
parent | b3021435ad91e494af01ca0778915877dc0780c0 (diff) | |
download | android-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.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp index c1476845..c484f331 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; \ |