aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/armnn_delegate.cpp
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2022-12-20 16:21:35 +0000
committerColm Donelan <colm.donelan@arm.com>2022-12-20 16:21:35 +0000
commitda7f2f947a750d8b377cd6bc180a838909f97356 (patch)
treecab18d41810deef8f19677c12cfe7f2ef29141f7 /delegate/src/armnn_delegate.cpp
parentcb223b7f485a33242fb9b18bc404bb33c29107e4 (diff)
downloadarmnn-da7f2f947a750d8b377cd6bc180a838909f97356.tar.gz
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 <colm.donelan@arm.com> Change-Id: I61c7fad8a5819a0a4aec0243899019a342c5cc5f
Diffstat (limited to 'delegate/src/armnn_delegate.cpp')
-rw-r--r--delegate/src/armnn_delegate.cpp7
1 files changed, 3 insertions, 4 deletions
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<armnn::BackendId> backends;
if (m_Runtime)