aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/test/LayerTests.cpp
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2019-07-23 15:37:19 +0100
committerRob Hughes <robert.hughes@arm.com>2019-07-23 15:58:27 +0100
commit9e10c2b9ee9ce2e8f74f80e22842a47479ba1174 (patch)
tree98563dfcbc948c4071dd88a90e886cc9e1858942 /src/backends/backendsCommon/test/LayerTests.cpp
parentb0f1dd7171836af19e632dff0b90065a8710f5fa (diff)
downloadarmnn-9e10c2b9ee9ce2e8f74f80e22842a47479ba1174.tar.gz
Fix various uses of non-standard C++:
* Replace u_int32_t with uint32_t * Replace size_t with uint32_t for initializer list of TensorInfo * Replace variable size arrays with std::vector * Replace reference to local variable during its initialisation Change-Id: I298b3995f1525f90a1ab2416d7e270315698fae3
Diffstat (limited to 'src/backends/backendsCommon/test/LayerTests.cpp')
-rw-r--r--src/backends/backendsCommon/test/LayerTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/backendsCommon/test/LayerTests.cpp b/src/backends/backendsCommon/test/LayerTests.cpp
index b40a3f5ad7..f996edad65 100644
--- a/src/backends/backendsCommon/test/LayerTests.cpp
+++ b/src/backends/backendsCommon/test/LayerTests.cpp
@@ -3262,7 +3262,7 @@ LayerTestResult<TOutput, 4> ElementwiseTestHelper(
const unsigned int outShape[4], std::vector<TOutput> outValues,
float qScale = 0.0f, int qOffset = 0)
{
- const size_t dimensionCount = 4;
+ const uint32_t dimensionCount = 4;
armnn::TensorInfo inputTensorInfo0{dimensionCount, shape0, ArmnnTypeInput};
armnn::TensorInfo inputTensorInfo1{dimensionCount, shape1, ArmnnTypeInput};
armnn::TensorInfo outputTensorInfo{dimensionCount, outShape, ArmnnTypeOutput};
@@ -4097,7 +4097,7 @@ LayerTestResult<float,4> MultiplicationTestHelper(
const unsigned int outShape[4],
const std::vector<float> & outValues)
{
- const size_t dimensionCount = 4;
+ const uint32_t dimensionCount = 4;
armnn::TensorInfo inputTensorInfo0{dimensionCount, shape0, armnn::DataType::Float32};
armnn::TensorInfo inputTensorInfo1{dimensionCount, shape1, armnn::DataType::Float32};
armnn::TensorInfo outputTensorInfo{dimensionCount, outShape, armnn::DataType::Float32};