diff options
author | Rob Hughes <robert.hughes@arm.com> | 2021-07-14 09:31:31 +0100 |
---|---|---|
committer | Rob Hughes <robert.hughes@arm.com> | 2021-07-15 14:50:36 +0100 |
commit | c013bc85f45add8c4bc8c7163316bbb90b37a15e (patch) | |
tree | 8a583a4bceb2eb772229dae2c2587bd6347a59ea /src/backends/backendsCommon/test/layerTests | |
parent | 1ccb3c3a26d8b02959493a54367054c1b43ab12c (diff) | |
download | armnn-c013bc85f45add8c4bc8c7163316bbb90b37a15e.tar.gz |
Fix some compile warnings & errors
* Fix type of literals
* Add explicit casts
* #include missing headers
* Replace use of non-standard u_int8_t
* Remove name of unused variables
* Fix DLL export macro - this was broken when some of the exporting headers
were moved to a different library.
Change-Id: Ie569c8df41a077b46c608798f39526352e2aeb3a
Signed-off-by: Rob Hughes <robert.hughes@arm.com>
Diffstat (limited to 'src/backends/backendsCommon/test/layerTests')
-rw-r--r-- | src/backends/backendsCommon/test/layerTests/CastTestImpl.cpp | 2 | ||||
-rw-r--r-- | src/backends/backendsCommon/test/layerTests/L2NormalizationTestImpl.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/backends/backendsCommon/test/layerTests/CastTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/CastTestImpl.cpp index aec57dbad1..92bce4f460 100644 --- a/src/backends/backendsCommon/test/layerTests/CastTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/CastTestImpl.cpp @@ -113,7 +113,7 @@ LayerTestResult<float, 4> CastUInt8ToFloat2dTest(armnn::IWorkloadFactory& worklo const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, const armnn::ITensorHandleFactory& tensorHandleFactory) { - std::vector<u_int8_t> inputValues = { 1, 3, 1, 3, 1, 3, 1, 3, 1, + std::vector<uint8_t> inputValues = { 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 1, 3, 1, 3 }; std::vector<float> outputValues = { 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 3.0f, 1.0f, 2.0f, 1.0f, 3.0f, 1.0f, 3.0f }; diff --git a/src/backends/backendsCommon/test/layerTests/L2NormalizationTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/L2NormalizationTestImpl.cpp index e242fd31d3..11c9766604 100644 --- a/src/backends/backendsCommon/test/layerTests/L2NormalizationTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/L2NormalizationTestImpl.cpp @@ -16,6 +16,8 @@ #include <test/TensorHelpers.hpp> +#include <numeric> + namespace { |