From a004251094074d7453531a25342d19dd66ee115f Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Tue, 30 Mar 2021 11:05:36 +0100 Subject: IVGCVSW-5799 'Create Pimpl Idiom for Async prototype' * Implemented Pimpl Idiom for IAsyncNetwork Signed-off-by: Sadik Armagan Change-Id: Ic7311880563568b014a27f6347f8d41f2ad96df6 --- src/armnn/AsyncNetwork.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/armnn/AsyncNetwork.hpp') diff --git a/src/armnn/AsyncNetwork.hpp b/src/armnn/AsyncNetwork.hpp index 9c525c5472..9bdc7eebd7 100644 --- a/src/armnn/AsyncNetwork.hpp +++ b/src/armnn/AsyncNetwork.hpp @@ -29,35 +29,35 @@ namespace armnn namespace experimental { -class AsyncNetwork final : public IAsyncNetwork +class AsyncNetworkImpl final { public: using WorkloadQueue = std::vector>; - AsyncNetwork(std::unique_ptr net, - const INetworkProperties &networkProperties, - profiling::ProfilingService &profilingService); + AsyncNetworkImpl(std::unique_ptr net, + const INetworkProperties &networkProperties, + profiling::ProfilingService &profilingService); - ~AsyncNetwork() { FreeWorkingMemory(); } + ~AsyncNetworkImpl() { FreeWorkingMemory(); } - TensorInfo GetInputTensorInfo(LayerBindingId layerId) const override; - TensorInfo GetOutputTensorInfo(LayerBindingId layerId) const override; + TensorInfo GetInputTensorInfo(LayerBindingId layerId) const; + TensorInfo GetOutputTensorInfo(LayerBindingId layerId) const; /// Thread safe execution of the network. Returns once execution is complete. /// Will block until this and any other thread using the same workingMem object completes. virtual Status Execute(const InputTensors& inputTensors, const OutputTensors& outputTensors, - IWorkingMemHandle& workingMemHandle) override; + IWorkingMemHandle& workingMemHandle); /// Create a new unique WorkingMemHandle object. Create multiple handles if you wish to have /// overlapped Execution by calling this function from different threads. - std::unique_ptr CreateWorkingMemHandle() override; + std::unique_ptr CreateWorkingMemHandle(); /// Get the profiler used for this network - std::shared_ptr GetProfiler() const override; + std::shared_ptr GetProfiler() const; /// Register a debug callback function to be used with this network - void RegisterDebugCallback(const DebugCallbackFunction& func) override; + void RegisterDebugCallback(const DebugCallbackFunction& func); private: void FreeWorkingMemory(); -- cgit v1.2.1