diff options
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/ArmNN.hpp | 1 | ||||
-rw-r--r-- | include/armnn/IBackend.hpp | 22 | ||||
-rw-r--r-- | include/armnn/Types.hpp | 16 |
3 files changed, 14 insertions, 25 deletions
diff --git a/include/armnn/ArmNN.hpp b/include/armnn/ArmNN.hpp index a9bb451931..f03b79d1ca 100644 --- a/include/armnn/ArmNN.hpp +++ b/include/armnn/ArmNN.hpp @@ -7,7 +7,6 @@ #include "BackendId.hpp" #include "Descriptors.hpp" #include "Exceptions.hpp" -#include "IBackend.hpp" #include "IRuntime.hpp" #include "INetwork.hpp" #include "LayerSupport.hpp" diff --git a/include/armnn/IBackend.hpp b/include/armnn/IBackend.hpp deleted file mode 100644 index 34df91c803..0000000000 --- a/include/armnn/IBackend.hpp +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#pragma once - -#include "BackendId.hpp" - -namespace armnn -{ - -class IBackend -{ -protected: - IBackend() {} - virtual ~IBackend() {} - -public: - virtual const BackendId& GetId() const = 0; -}; - -} // namespace armnn
\ No newline at end of file diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index 2249a365d2..cd6e17be37 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -139,6 +139,20 @@ enum class OutputShapeRounding Ceiling = 1 }; +/// Each backend should implement an IBackend. +class IBackend +{ +protected: + IBackend() {} + virtual ~IBackend() {} + +public: + virtual const BackendId& GetId() const = 0; +}; + +using IBackendSharedPtr = std::shared_ptr<IBackend>; +using IBackendUniquePtr = std::unique_ptr<IBackend, void(*)(IBackend* backend)>; + /// Device specific knowledge to be passed to the optimizer. class IDeviceSpec { @@ -208,6 +222,4 @@ private: /// Define LayerGuid type. using LayerGuid = unsigned int; -struct EmptyInitializer {}; - } // namespace armnn |