From da7f2f947a750d8b377cd6bc180a838909f97356 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 20 Dec 2022 16:21:35 +0000 Subject: IVGCVSW-7409 GPU backend options not being passed from the delegate. Two problems here: * First the Delegate was using the parameter options after the execution of std::move on it. * In ExecuteNetworkParams 3 GPU backend options were instead being set as optimizer options. Signed-off-by: Colm Donelan Change-Id: I61c7fad8a5819a0a4aec0243899019a342c5cc5f --- delegate/src/armnn_delegate.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'delegate') diff --git a/delegate/src/armnn_delegate.cpp b/delegate/src/armnn_delegate.cpp index 4d95522dbd..06affca752 100644 --- a/delegate/src/armnn_delegate.cpp +++ b/delegate/src/armnn_delegate.cpp @@ -137,13 +137,12 @@ Delegate::Delegate(armnnDelegate::DelegateOptions options) m_Options(std::move(options)) { // Configures logging for ARMNN - if (options.IsLoggingEnabled()) + if (m_Options.IsLoggingEnabled()) { - armnn::ConfigureLogging(true, true, options.GetLoggingSeverity()); + armnn::ConfigureLogging(true, true, m_Options.GetLoggingSeverity()); } - // Create ArmNN Runtime - m_Runtime = armnn::IRuntime::Create(options.GetRuntimeOptions()); + m_Runtime = armnn::IRuntime::Create(m_Options.GetRuntimeOptions()); std::vector backends; if (m_Runtime) -- cgit v1.2.1