aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backends/backendsCommon/WorkloadUtils.cpp6
-rw-r--r--tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backends/backendsCommon/WorkloadUtils.cpp b/src/backends/backendsCommon/WorkloadUtils.cpp
index 3185ba00d3..9e008ca441 100644
--- a/src/backends/backendsCommon/WorkloadUtils.cpp
+++ b/src/backends/backendsCommon/WorkloadUtils.cpp
@@ -82,7 +82,7 @@ ConstTensor ReorderWeightChannelsForAcl(const ConstTensor& weightHandle, DataLay
break;
}
- DataType weightAclOrder[height*width*inputChannels*multiplier];
+ std::vector<DataType> weightAclOrder(height*width*inputChannels*multiplier);
unsigned int destinationWeightsChannel;
unsigned int totalChannels = inputChannels * multiplier;
unsigned int channelSize = height * width;
@@ -105,7 +105,7 @@ ConstTensor ReorderWeightChannelsForAcl(const ConstTensor& weightHandle, DataLay
}
}
- ::memcpy(permuteBuffer, weightAclOrder, weightHandle.GetInfo().GetNumBytes());
+ ::memcpy(permuteBuffer, weightAclOrder.data(), weightHandle.GetInfo().GetNumBytes());
return ConstTensor(weightHandle.GetInfo(), permuteBuffer);
}
@@ -158,7 +158,7 @@ armnn::ConstTensor ConvertWeightTensorFromArmnnToAcl(const ConstCpuTensorHandle*
ConstTensor weightPermuted = PermuteTensor(weightTensor, permutationVector, permuteBuffer);
// Shuffle the weights data to obtain the channel order needed used by Acl
- if (multiplier > 1 and inputChannels > 1 and dataLayout == DataLayout::NCHW)
+ if (multiplier > 1 && inputChannels > 1 && dataLayout == DataLayout::NCHW)
{
switch (weightPermuted.GetDataType())
{
diff --git a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
index 635eaf3af5..eefe628201 100644
--- a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
+++ b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
@@ -161,7 +161,7 @@ auto ParseDataArray<armnn::DataType::QuantisedAsymm8>(std::istream& stream,
[&quantizationScale, &quantizationOffset](const std::string & s)
{
return boost::numeric_cast<uint8_t>(
- armnn::Quantize<u_int8_t>(std::stof(s),
+ armnn::Quantize<uint8_t>(std::stof(s),
quantizationScale,
quantizationOffset));
});