aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/armnn_delegate.cpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2020-11-11 18:01:48 +0000
committerSadik Armagan <sadik.armagan@arm.com>2020-11-12 11:35:11 +0000
commit4189cc5ca4bb12e02c5e7f86ec6079f76d845b59 (patch)
treebb5426804692e11abf000ffe9c64f7d95e104beb /delegate/src/armnn_delegate.cpp
parent8081536d24291794b4e189e6d5532d913a4525cb (diff)
downloadarmnn-4189cc5ca4bb12e02c5e7f86ec6079f76d845b59.tar.gz
IVGCVSW-5504 'TfLiteDelegate: Introduce FP16 and BackendOptions'
* Added BackendOptions creations of armnn_delegate * Included armnn/third-party the armnn_delegate unit tests * Updated the CreateConstTensor function Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I8e2099a465766b905bff701413307e5850b68e42
Diffstat (limited to 'delegate/src/armnn_delegate.cpp')
-rw-r--r--delegate/src/armnn_delegate.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/delegate/src/armnn_delegate.cpp b/delegate/src/armnn_delegate.cpp
index 69bd4f7350..3380c84d0b 100644
--- a/delegate/src/armnn_delegate.cpp
+++ b/delegate/src/armnn_delegate.cpp
@@ -118,10 +118,15 @@ Delegate::Delegate(armnnDelegate::DelegateOptions options)
{
// Create ArmNN Runtime
armnn::IRuntime::CreationOptions runtimeOptions;
+
+ auto backendOptions = m_Options.GetBackendOptions();
+ if (!backendOptions.empty())
+ {
+ runtimeOptions.m_BackendOptions = backendOptions;
+ }
m_Runtime = armnn::IRuntime::Create(runtimeOptions);
std::vector<armnn::BackendId> backends;
-
if (m_Runtime)
{
const armnn::BackendIdSet supportedDevices = m_Runtime->GetDeviceSpec().GetSupportedBackends();