From f769f292ba506784c8d21d691de821f4e3b53fec Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Fri, 25 Jun 2021 12:53:09 +0100 Subject: IVGCVSW-6178 Add additional compiler warnings to the driver Signed-off-by: Finn Williams Change-Id: I2209251736a095583fffc8da774188e0dccfc932 --- ConversionUtils_1_2.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ConversionUtils_1_2.hpp') diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp index c66a2f59..a95b1c12 100644 --- a/ConversionUtils_1_2.hpp +++ b/ConversionUtils_1_2.hpp @@ -463,7 +463,6 @@ bool ConvertDepthwiseConv2d_1_2(const HalOperation& operation, const HalModel& m desc.m_DataLayout = OptionalDataLayout(operation, dataLayoutFlagIndex, model, data); armnnUtils::DataLayoutIndexed dataLayoutIndexed(desc.m_DataLayout); - unsigned int channelsIndex = dataLayoutIndexed.GetChannelsIndex(); unsigned int widthIndex = dataLayoutIndexed.GetWidthIndex(); unsigned int heightIndex = dataLayoutIndexed.GetHeightIndex(); @@ -780,7 +779,7 @@ bool ConvertGather(const HalOperation& operation, const HalModel& model, Convers __func__, outputDimensions, inputDimensions, indicesDimensions); } - int32_t axis; + uint32_t axis; if (!GetInputScalar(operation, 1, HalOperandType::INT32, axis, model, data)) { return Fail("%s: Operation has invalid or unsupported axis operand", __func__); @@ -890,7 +889,6 @@ bool ConvertGroupedConv2d(const HalOperation& operation, const HalModel& model, const TensorShape& inputShape = inputInfo.GetShape(); const TensorShape& outputShape = outputInfo.GetShape(); const TensorShape& weightsShape = weights.GetShape(); - const TensorShape& biasesShape = biases.GetShape(); armnnUtils::DataLayoutIndexed dataLayoutIndexed(dataLayout); const unsigned int channelsIndex = dataLayoutIndexed.GetChannelsIndex(); @@ -901,7 +899,7 @@ bool ConvertGroupedConv2d(const HalOperation& operation, const HalModel& model, desc.m_DataLayout = dataLayout; desc.m_BiasEnabled = true; - int numGroups; + unsigned int numGroups; ActivationFn activation; if (operation.inputs.size() == 12) -- cgit v1.2.1