From 9e10c2b9ee9ce2e8f74f80e22842a47479ba1174 Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Tue, 23 Jul 2019 15:37:19 +0100 Subject: 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 --- src/backends/backendsCommon/test/LayerTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backends/backendsCommon/test/LayerTests.cpp') 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 ElementwiseTestHelper( const unsigned int outShape[4], std::vector 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 MultiplicationTestHelper( const unsigned int outShape[4], const std::vector & 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}; -- cgit v1.2.1