diff options
author | David Beck <david.beck@arm.com> | 2018-10-04 15:43:17 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-10 16:16:58 +0100 |
commit | 5eec11db435a94ba5046ba74edc5c9c412a64e9d (patch) | |
tree | 6a3d9b9126ae449fc5e83838b2eb1765a67d6aad /src/backends/reference | |
parent | d806792f7fbdae2cfa8dcb1eb59b9400b84741da (diff) | |
download | armnn-5eec11db435a94ba5046ba74edc5c9c412a64e9d.tar.gz |
IVGCVSW-1964 : replace optional biases with home-grown Optional
!android-nn-driver:151788
Change-Id: Ibdc41d09b8df05e7a0360dcb8a060860dfb1bd99
Diffstat (limited to 'src/backends/reference')
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 4 | ||||
-rw-r--r-- | src/backends/reference/RefLayerSupport.hpp | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index 1ca3d5b6d6..a42efb748f 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -87,7 +87,7 @@ bool IsConvolution2dSupportedRef(const TensorInfo& input, const TensorInfo& output, const Convolution2dDescriptor& descriptor, const TensorInfo& weights, - const boost::optional<TensorInfo>& biases, + const Optional<TensorInfo>& biases, std::string* reasonIfUnsupported) { ignore_unused(descriptor); @@ -104,7 +104,7 @@ bool IsDepthwiseConvolutionSupportedRef(const TensorInfo& input, const TensorInfo& output, const DepthwiseConvolution2dDescriptor& descriptor, const TensorInfo& weights, - const boost::optional<TensorInfo>& biases, + const Optional<TensorInfo>& biases, std::string* reasonIfUnsupported) { ignore_unused(output); diff --git a/src/backends/reference/RefLayerSupport.hpp b/src/backends/reference/RefLayerSupport.hpp index 0fac886234..dcc5dd3ddf 100644 --- a/src/backends/reference/RefLayerSupport.hpp +++ b/src/backends/reference/RefLayerSupport.hpp @@ -8,9 +8,6 @@ #include <armnn/Types.hpp> #include <armnn/Tensor.hpp> #include <layers/LstmLayer.hpp> -#include <boost/optional.hpp> - -#include <boost/optional.hpp> namespace armnn { @@ -46,14 +43,14 @@ bool IsConvolution2dSupportedRef(const TensorInfo& input, const TensorInfo& output, const Convolution2dDescriptor& descriptor, const TensorInfo& weights, - const boost::optional<TensorInfo>& biases, + const Optional<TensorInfo>& biases, std::string* reasonIfUnsupported = nullptr); bool IsDepthwiseConvolutionSupportedRef(const TensorInfo& input, const TensorInfo& output, const DepthwiseConvolution2dDescriptor& descriptor, const TensorInfo& weights, - const boost::optional<TensorInfo>& biases, + const Optional<TensorInfo>& biases, std::string* reasonIfUnsupported = nullptr); bool IsDivisionSupportedRef(const TensorInfo& input0, |