From a9a1cf117072b8aa81e27bab4d1d3e356d8ea51d Mon Sep 17 00:00:00 2001 From: Nattapat Chaimanowong Date: Mon, 3 Dec 2018 16:06:49 +0000 Subject: IVGCVSW-2315 Add DebugLayer and no-op factory method Change-Id: I5455b720565248ff94278e76887d63f8434a7b58 --- include/armnn/ILayerSupport.hpp | 4 ++++ include/armnn/LayerSupport.hpp | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'include/armnn') diff --git a/include/armnn/ILayerSupport.hpp b/include/armnn/ILayerSupport.hpp index eecaa43271..859eee25f8 100644 --- a/include/armnn/ILayerSupport.hpp +++ b/include/armnn/ILayerSupport.hpp @@ -64,6 +64,10 @@ public: const Optional& biases, Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsDebugSupported(const TensorInfo& input, + const TensorInfo& output, + Optional reasonIfUnsupported = EmptyOptional()) const; + virtual bool IsDepthwiseConvolutionSupported(const TensorInfo& input, const TensorInfo& output, const DepthwiseConvolution2dDescriptor& descriptor, diff --git a/include/armnn/LayerSupport.hpp b/include/armnn/LayerSupport.hpp index 979579820a..45ba4979c9 100644 --- a/include/armnn/LayerSupport.hpp +++ b/include/armnn/LayerSupport.hpp @@ -78,6 +78,13 @@ bool IsConvolution2dSupported(const BackendId& backend, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); +/// Deprecated in favor of IBackend and ILayerSupport interfaces +bool IsDebugSupported(const BackendId& backend, + const TensorInfo& input, + const TensorInfo& output, + char* reasonIfUnsupported = nullptr, + size_t reasonIfUnsupportedMaxLength = 1024); + /// Deprecated in favor of IBackend and ILayerSupport interfaces bool IsDepthwiseConvolutionSupported(const BackendId& backend, const TensorInfo& input, -- cgit v1.2.1