diff options
Diffstat (limited to 'delegate/src')
-rw-r--r-- | delegate/src/armnn_delegate.cpp | 4 | ||||
-rw-r--r-- | delegate/src/test/DelegateOptionsTest.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/delegate/src/armnn_delegate.cpp b/delegate/src/armnn_delegate.cpp index 4c625a9867..e637ca6ebf 100644 --- a/delegate/src/armnn_delegate.cpp +++ b/delegate/src/armnn_delegate.cpp @@ -365,7 +365,9 @@ ArmnnSubgraph* ArmnnSubgraph::Create(TfLiteContext* tfLiteContext, armnn::Status loadingStatus; if (delegate->m_Options.GetOptimizerOptions().m_ImportEnabled) { - armnn::INetworkProperties networkProperties(true, true); + armnn::INetworkProperties networkProperties(false, + armnn::MemorySource::Malloc, + armnn::MemorySource::Malloc); loadingStatus = delegate->m_Runtime->LoadNetwork(networkId, std::move(optNet), errorMessage, diff --git a/delegate/src/test/DelegateOptionsTest.cpp b/delegate/src/test/DelegateOptionsTest.cpp index 6024754be8..8f6027df58 100644 --- a/delegate/src/test/DelegateOptionsTest.cpp +++ b/delegate/src/test/DelegateOptionsTest.cpp @@ -93,7 +93,7 @@ TEST_CASE ("ArmnnDelegateOptimizerOptionsDebugFunction") callback = true; }; - armnn::INetworkProperties networkProperties; + armnn::INetworkProperties networkProperties(false, armnn::MemorySource::Undefined, armnn::MemorySource::Undefined); armnnDelegate::DelegateOptions delegateOptions(backends, optimizerOptions, armnn::EmptyOptional(), |