From a68241066c3e797dab70f515d2c55aaa74abf564 Mon Sep 17 00:00:00 2001 From: arovir01 Date: Tue, 28 Aug 2018 17:40:45 +0100 Subject: IVGCVSW-1324: Make biases truly optional for Conv2d and DepthwiseConvolution !android-nn-driver:145961 Change-Id: I039ab0adc61725859514246365b5e5b5fa603eaa --- include/armnn/LayerSupport.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/armnn') diff --git a/include/armnn/LayerSupport.hpp b/include/armnn/LayerSupport.hpp index c875619949..26cbda47e2 100644 --- a/include/armnn/LayerSupport.hpp +++ b/include/armnn/LayerSupport.hpp @@ -8,6 +8,8 @@ #include #include +#include + namespace armnn { @@ -58,7 +60,7 @@ bool IsConvolution2dSupported(Compute compute, const TensorInfo& output, const Convolution2dDescriptor& descriptor, const TensorInfo& weights, - const TensorInfo& biases, + const boost::optional& biases, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); @@ -67,7 +69,7 @@ bool IsDepthwiseConvolutionSupported(Compute compute, const TensorInfo& output, const DepthwiseConvolution2dDescriptor& descriptor, const TensorInfo& weights, - const TensorInfo& biases, + const boost::optional& biases, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); -- cgit v1.2.1