From 02d4046a0fa6c3a335adf1fc305c1b6a96a0907e Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 2 Apr 2024 14:35:34 +0100 Subject: IVGCVSW-8298 Fix failing fsrcnn test Change-Id: I03c26ab763ec306a6efe31f9b4e0b1c058589bf7 Signed-off-by: Nikhil Raj --- delegate/classic/src/armnn_delegate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'delegate') diff --git a/delegate/classic/src/armnn_delegate.cpp b/delegate/classic/src/armnn_delegate.cpp index ed63215a48..c3815b6c59 100644 --- a/delegate/classic/src/armnn_delegate.cpp +++ b/delegate/classic/src/armnn_delegate.cpp @@ -276,14 +276,14 @@ const std::string Delegate::GetVersion() ArmnnSubgraph::~ArmnnSubgraph() { - // We're finished with the network. - m_Runtime->UnloadNetwork(m_NetworkId); - // The delegate holds its own Arm NN runtime so this is our last chance to print internal profiling data. std::shared_ptr profiler = m_Runtime->GetProfiler(m_NetworkId); if (profiler && profiler->IsProfilingEnabled()) { profiler->Print(std::cout); } + + // We're finished with the network. + m_Runtime->UnloadNetwork(m_NetworkId); } TfLiteStatus ArmnnSubgraph::AddInputLayer(DelegateData& delegateData, -- cgit v1.2.1