diff options
author | Finn Williams <Finn.Williams@arm.com> | 2021-06-25 12:53:09 +0100 |
---|---|---|
committer | Finn Williams <Finn.Williams@arm.com> | 2021-06-25 13:14:45 +0100 |
commit | f769f292ba506784c8d21d691de821f4e3b53fec (patch) | |
tree | 786c90044689299d84962b263120cc3ca8ca41b7 /ConversionUtils_1_2.hpp | |
parent | d27c13b273f265dc5dffd803728d6f913679834e (diff) | |
download | android-nn-driver-f769f292ba506784c8d21d691de821f4e3b53fec.tar.gz |
IVGCVSW-6178 Add additional compiler warnings to the driver
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I2209251736a095583fffc8da774188e0dccfc932
Diffstat (limited to 'ConversionUtils_1_2.hpp')
-rw-r--r-- | ConversionUtils_1_2.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<HalPolicy>(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<HalPolicy>(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) |