From 5602b1952c684514a13beb955123b0b46a58cde9 Mon Sep 17 00:00:00 2001 From: arovir01 Date: Thu, 4 Oct 2018 16:15:02 +0100 Subject: IVGCVSW-1964: Replace optional biases with home-grown Optional !armnn:151777 Change-Id: Ib7eba10f05810c03d7384256828bfd0c23bb6bba --- 1.0/HalPolicy.cpp | 6 ++++-- 1 file 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 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 biases(bias.GetInfo()); if (!IsLayerSupported(__func__, armnn::IsDepthwiseConvolutionSupported, -- cgit v1.2.1