diff options
author | arovir01 <Aron.Virginas-Tar@arm.com> | 2018-10-04 16:15:02 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-12 11:59:53 +0100 |
commit | 5602b1952c684514a13beb955123b0b46a58cde9 (patch) | |
tree | 58282103de265b0ddc2ab2f2b6c819fd0da9343e /1.0 | |
parent | 62a4a9f50a91d4c1b33205a61da7bf97f9afd32b (diff) | |
download | android-nn-driver-5602b1952c684514a13beb955123b0b46a58cde9.tar.gz |
IVGCVSW-1964: Replace optional biases with home-grown Optional
!armnn:151777
Change-Id: Ib7eba10f05810c03d7384256828bfd0c23bb6bba
Diffstat (limited to '1.0')
-rw-r--r-- | 1.0/HalPolicy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/1.0/HalPolicy.cpp b/1.0/HalPolicy.cpp index 1375df38..82a8c447 100644 --- a/1.0/HalPolicy.cpp +++ b/1.0/HalPolicy.cpp @@ -5,6 +5,8 @@ #include "HalPolicy.hpp" +#include "armnn/Optional.hpp" + namespace armnn_driver { namespace hal_1_0 @@ -409,7 +411,7 @@ bool HalPolicy::ConvertConv2d(const Operation& operation, const Model& model, Co } desc.m_BiasEnabled = true; - auto biases = boost::make_optional(bias.GetInfo()); + armnn::Optional<armnn::TensorInfo> biases(bias.GetInfo()); if (!IsLayerSupported(__func__, armnn::IsConvolution2dSupported, @@ -532,7 +534,7 @@ bool HalPolicy::ConvertDepthwiseConv2d(const Operation& operation, const Model& } desc.m_BiasEnabled = true; - auto biases = boost::make_optional(bias.GetInfo()); + armnn::Optional<armnn::TensorInfo> biases(bias.GetInfo()); if (!IsLayerSupported(__func__, armnn::IsDepthwiseConvolutionSupported, |