From 554fa09a0f3d6c9c572634c9d2de9bfb6c3218b0 Mon Sep 17 00:00:00 2001 From: Keith Davis Date: Tue, 20 Jul 2021 11:25:22 +0100 Subject: IVGCVSW-5980 JSON profiling output * Add new ProfilingDetails class to construct operator details string * Add new macro which helps append layer details to ostream * Add ProfilingEnabled to NetworkProperties so that profiling can be realised when loading the network * Add further optional info to WorkloadInfo specific to convolutions * Generalise some JsonPrinter functions into JsonUtils for reusability * Remove explicit enabling of profiling within InferenceModel as it is done when loading network * Add ProfilingDetails macros to ConvolutionWorkloads for validation Signed-off-by: Keith Davis Change-Id: Ie84bc7dc667e72e6bcb635544f9ead7af1765690 --- src/armnn/LoadedNetwork.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/armnn/LoadedNetwork.cpp') diff --git a/src/armnn/LoadedNetwork.cpp b/src/armnn/LoadedNetwork.cpp index 13beb13a07..c8dbcaaeb5 100644 --- a/src/armnn/LoadedNetwork.cpp +++ b/src/armnn/LoadedNetwork.cpp @@ -125,6 +125,8 @@ LoadedNetwork::LoadedNetwork(std::unique_ptr net, m_Profiler = std::make_shared(); ProfilerManager::GetInstance().RegisterProfiler(m_Profiler.get()); + m_Profiler->EnableProfiling(networkProperties.m_ProfilingEnabled); + Graph& order = m_OptimizedNetwork->pOptimizedNetworkImpl->GetGraph().TopologicalSort(); //First create tensor handlers, backends and workload factories. //Handlers are created before workloads are. -- cgit v1.2.1