diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-05-01 13:03:59 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-05-10 13:30:46 +0000 |
commit | bcfd09a14a61bb8457555c61e7c5697b1f901ddb (patch) | |
tree | 30754b3eaad2464c787d74b304bcd7b135dd4178 /examples/neon_convolution.cpp | |
parent | 46a49a0a8206f0efa7afd514940e180a88ffd732 (diff) | |
download | ComputeLibrary-bcfd09a14a61bb8457555c61e7c5697b1f901ddb.tar.gz |
COMPMID-2177 Fix clang warnings
Change-Id: I78039db8c58d7b14a042c41e54c25fb9cb509bf7
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1092
Reviewed-by: VidhyaSudhan Loganathan <vidhyasudhan.loganathan@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/neon_convolution.cpp')
-rw-r--r-- | examples/neon_convolution.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/neon_convolution.cpp b/examples/neon_convolution.cpp index 1a7e865908..56b4ddc0be 100644 --- a/examples/neon_convolution.cpp +++ b/examples/neon_convolution.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 ARM Limited. + * Copyright (c) 2016-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -32,7 +32,7 @@ using namespace utils; /** Gaussian 3x3 matrix */ -const int16_t gaussian3x3[] = +const std::array<int16_t, 9> gaussian3x3 = { 1, 2, 1, 2, 4, 2, @@ -41,7 +41,7 @@ const int16_t gaussian3x3[] = /** Gaussian 5x5 matrix */ -const int16_t gaussian5x5[] = +const std::array<int16_t, 25> gaussian5x5 = { 1, 4, 6, 4, 1, 4, 16, 24, 16, 4, @@ -79,8 +79,8 @@ public: // Apply a Gaussian 3x3 filter to the source image followed by a Gaussian 5x5: // The function will automatically update the padding information inside input and output to match its requirements - conv3x3.configure(&src, &tmp, gaussian3x3, 0 /* Let arm_compute calculate the scale */, BorderMode::UNDEFINED); - conv5x5.configure(&tmp, &dst, gaussian5x5, 0 /* Let arm_compute calculate the scale */, BorderMode::UNDEFINED); + conv3x3.configure(&src, &tmp, gaussian3x3.data(), 0 /* Let arm_compute calculate the scale */, BorderMode::UNDEFINED); + conv5x5.configure(&tmp, &dst, gaussian5x5.data(), 0 /* Let arm_compute calculate the scale */, BorderMode::UNDEFINED); // Now that the padding requirements are known we can allocate the images: src.allocator()->allocate(); |