aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/armnn_delegate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/armnn_delegate.cpp')
-rw-r--r--delegate/classic/src/armnn_delegate.cpp6
1 files changed, 3 insertions, 3 deletions
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<armnn::IProfiler> 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,