From 3e4b60897bde2ad7ab5b730c7c5d727e41cc0eef Mon Sep 17 00:00:00 2001 From: Teresa Charlin Date: Thu, 19 Oct 2023 19:13:29 +0100 Subject: IVGCVSW-7722 Add ArmNNSettings to Opaque Delegate * Fix order for reading options to read backend first independently of the order given Signed-off-by: Teresa Charlin Change-Id: Ia87b5920c7cd79b3e66bb6e5779e2355b21a7ec6 --- delegate/opaque/src/armnn_delegate.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'delegate/opaque/src/armnn_delegate.cpp') diff --git a/delegate/opaque/src/armnn_delegate.cpp b/delegate/opaque/src/armnn_delegate.cpp index 8e3597d1d3..129bc4333b 100644 --- a/delegate/opaque/src/armnn_delegate.cpp +++ b/delegate/opaque/src/armnn_delegate.cpp @@ -258,12 +258,8 @@ TfLiteStatus DoPrepare(TfLiteOpaqueContext* tfLiteContext, TfLiteOpaqueDelegate* return status; } -TfLiteOpaqueDelegate* TfLiteArmnnOpaqueDelegateCreate(const void* settings) +TfLiteOpaqueDelegate* TfLiteArmnnOpaqueDelegateCreate(armnnDelegate::DelegateOptions options) { - // This method will always create Opaque Delegate with default settings until - // we have a DelegateOptions Constructor which can parse the void* settings - armnn::IgnoreUnused(settings); - auto options = TfLiteArmnnDelegateOptionsDefault(); auto* armnnDelegate = new ::armnnOpaqueDelegate::ArmnnOpaqueDelegate(options); return TfLiteOpaqueDelegateCreate(armnnDelegate->GetDelegateBuilder()); } -- cgit v1.2.1