From 992d6dc57d8463729910b688f0fb5825d0d3ccf2 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Thu, 10 Jan 2019 17:34:20 +0000 Subject: IVGCVSW-2454 Refactor ArmNN to support pluggable backends from a separate code base * Made the virtual functions in ILayerSupport.hpp pure * Created a LayerSupportBase class with the default implementation of the interface * Made the backend layer support classes inherit from the base class, instead of directly from the interface * Refactored the profiler and the profiling event classes to use the BackendId instead of the Compute * Implemented a proper MemCopy support method * Changed Compute to BackendId in the profiling API and objects * Removed static references to pluggable backends !android-nn-driver:492 Change-Id: Id6332b5f48c980819e0a09adc818d1effd057296 --- src/armnn/ProfilingEvent.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/armnn/ProfilingEvent.hpp') diff --git a/src/armnn/ProfilingEvent.hpp b/src/armnn/ProfilingEvent.hpp index 134735530f..9f57753585 100644 --- a/src/armnn/ProfilingEvent.hpp +++ b/src/armnn/ProfilingEvent.hpp @@ -27,10 +27,10 @@ public: using Instruments = std::vector; Event(const std::string& eventName, - Profiler* profiler, - Event* parent, - const Compute computeDevice, - std::vector&& instrument); + Profiler* profiler, + Event* parent, + const BackendId backendId, + std::vector&& instrument); Event(const Event& other) = delete; @@ -62,9 +62,9 @@ public: /// \return Pointer of the parent event const Event* GetParentEvent() const; - /// Get the compute device of the event - /// \return Compute device of the event - Compute GetComputeDevice() const; + /// Get the backend id of the event + /// \return Backend id of the event + BackendId GetBackendId() const; /// Assignment operator Event& operator=(const Event& other) = delete; @@ -82,8 +82,8 @@ private: /// Stores optional parent event Event* m_Parent; - /// Compute device - Compute m_ComputeDevice; + /// Backend id + BackendId m_BackendId; /// Instruments to use Instruments m_Instruments; -- cgit v1.2.1