diff options
author | arovir01 <Aron.Virginas-Tar@arm.com> | 2018-08-28 17:40:45 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-09-17 17:21:21 +0100 |
commit | a68241066c3e797dab70f515d2c55aaa74abf564 (patch) | |
tree | 9f5b70a02dcd7d5d61d58e2bf235ee473be53ce5 /include/armnn/LayerSupport.hpp | |
parent | c577f2c6a3b4ddb6ba87a882723c53a248afbeba (diff) | |
download | armnn-a68241066c3e797dab70f515d2c55aaa74abf564.tar.gz |
IVGCVSW-1324: Make biases truly optional for Conv2d and DepthwiseConvolution
!android-nn-driver:145961
Change-Id: I039ab0adc61725859514246365b5e5b5fa603eaa
Diffstat (limited to 'include/armnn/LayerSupport.hpp')
-rw-r--r-- | include/armnn/LayerSupport.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <armnn/Types.hpp> #include <armnn/Tensor.hpp> +#include <boost/optional.hpp> + 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<TensorInfo>& 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<TensorInfo>& biases, char* reasonIfUnsupported = nullptr, size_t reasonIfUnsupportedMaxLength = 1024); |