diff options
author | David Beck <david.beck@arm.com> | 2018-10-17 14:17:50 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-22 16:57:54 +0100 |
commit | 3e9e11541c177abd7101962ef1e703d70d718c56 (patch) | |
tree | f2076ddb343d51450e41465826db2a4096d1f8b3 /include/armnn | |
parent | 8e6f92d2d6b2bb94e6ba9b794c08e465039ea98b (diff) | |
download | armnn-3e9e11541c177abd7101962ef1e703d70d718c56.tar.gz |
IVGCVSW-2037 : separate registry for layer support intrefaces
* because their lifetime is different from backends
Change-Id: I9ba525e7e503b148cde1294933f3954b8bad3d68
Diffstat (limited to 'include/armnn')
-rw-r--r-- | include/armnn/BackendId.hpp | 2 | ||||
-rw-r--r-- | include/armnn/ILayerSupport.hpp | 3 | ||||
-rw-r--r-- | include/armnn/Types.hpp | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/include/armnn/BackendId.hpp b/include/armnn/BackendId.hpp index d2479ebb2c..af3b7995eb 100644 --- a/include/armnn/BackendId.hpp +++ b/include/armnn/BackendId.hpp @@ -4,10 +4,12 @@ // #pragma once +#include <ostream> #include <set> #include <unordered_set> #include <string> #include <memory> +#include <vector> namespace armnn { diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index 58adea85de..d63c3a7063 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -8,6 +8,7 @@ #include <armnn/Optional.hpp> #include <vector> #include <cctype> +#include <memory> namespace armnn { @@ -178,4 +179,6 @@ public: Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const; }; // class ILayerSupport +using ILayerSupportSharedPtr = std::shared_ptr<ILayerSupport>; + } // namespace armnn diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index bb0b1e6ca7..cd6e17be37 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -6,8 +6,8 @@ #include <array> #include <memory> -#include "ILayerSupport.hpp" #include "BackendId.hpp" +#include "Exceptions.hpp" namespace armnn { @@ -148,7 +148,6 @@ protected: public: virtual const BackendId& GetId() const = 0; - virtual const ILayerSupport& GetLayerSupport() const = 0; }; using IBackendSharedPtr = std::shared_ptr<IBackend>; |