From f364d5391b08e9071cd965f5765385ec9156b652 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Wed, 9 Jun 2021 17:07:33 +0100 Subject: IVGCVSW-6062 Rework the async threadpool !android-nn-driver:5802 * Extract the threadpool from LoadedNetwork/Runtime * Refactor the threadpool to be handle multiple networks * Trim IAsyncExecutionCallback and add an InferenceId to AsyncExecutionCallback * Add AsyncCallbackManager class Signed-off-by: Finn Williams Change-Id: I36aa2ad29c16bc10ee0706adfeb6b27f60012afb --- src/armnn/WorkingMemHandle.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/armnn/WorkingMemHandle.hpp') diff --git a/src/armnn/WorkingMemHandle.hpp b/src/armnn/WorkingMemHandle.hpp index 5ccb2b2342..5e3fd66299 100644 --- a/src/armnn/WorkingMemHandle.hpp +++ b/src/armnn/WorkingMemHandle.hpp @@ -13,6 +13,7 @@ #include #include +#include namespace armnn { @@ -38,10 +39,7 @@ public: return m_NetworkId; } - profiling::ProfilingGuid GetInferenceId() override - { - return m_InferenceId; - } + /// Allocate the backing memory required for execution. If this is not called, then allocation will be /// deferred to execution time. The mutex must be locked. @@ -92,7 +90,6 @@ private: bool m_IsAllocated; std::mutex m_Mutex; - profiling::ProfilingGuid m_InferenceId; }; } // end experimental namespace -- cgit v1.2.1