From a4f378dcd39addd4a63db1c0848f2c120804f4eb Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 26 Apr 2019 14:54:54 +0100 Subject: COMPMID-1995: Fix clang-tidy warnings - Remove VirtualCall checks - Fix some unused variables errors - Use std::array insted of C style arrays - Various fixes Change-Id: Ife6170b7102de42b8f04e298dcf8476bf90779f0 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/1049 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio --- src/core/NEON/kernels/NEUpsampleLayerKernel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/core/NEON/kernels/NEUpsampleLayerKernel.cpp') diff --git a/src/core/NEON/kernels/NEUpsampleLayerKernel.cpp b/src/core/NEON/kernels/NEUpsampleLayerKernel.cpp index aae85c6741..d3d88b3bf0 100644 --- a/src/core/NEON/kernels/NEUpsampleLayerKernel.cpp +++ b/src/core/NEON/kernels/NEUpsampleLayerKernel.cpp @@ -130,7 +130,7 @@ void NEUpsampleLayerKernel::upsample_f32_nchw(const arm_compute::Window &window) Iterator output(_output, window_out); const int offset_y_out = _output->info()->strides_in_bytes().y() / sizeof(float); - execute_window_loop(window_out, [&](const Coordinates & id) + execute_window_loop(window_out, [&](const Coordinates &) { const float32x4_t data = vld1q_f32(reinterpret_cast(input.ptr())); const float32x4_t data_out1 = { vgetq_lane_f32(data, 0), vgetq_lane_f32(data, 0), vgetq_lane_f32(data, 1), vgetq_lane_f32(data, 1) }; @@ -157,7 +157,7 @@ void NEUpsampleLayerKernel::upsample_f32_nhwc(const arm_compute::Window &window) const int offset_y_out = _output->info()->strides_in_bytes().y() / sizeof(float); const int offset_z_out = _output->info()->strides_in_bytes().z() / sizeof(float); - execute_window_loop(window_out, [&](const Coordinates & id) + execute_window_loop(window_out, [&](const Coordinates &) { const float32x4_t data = vld1q_f32(reinterpret_cast(input.ptr())); auto out = reinterpret_cast(output.ptr()); @@ -182,7 +182,7 @@ void NEUpsampleLayerKernel::upsample_qasymm8_nchw(const arm_compute::Window &win Iterator output(_output, window_out); const int offset_y_out = _output->info()->strides_in_bytes().y() / sizeof(uint8_t); - execute_window_loop(window_out, [&](const Coordinates & id) + execute_window_loop(window_out, [&](const Coordinates &) { const uint8x16_t data = vld1q_u8(reinterpret_cast(input.ptr())); const uint8x16_t data_out1 = { vgetq_lane_u8(data, 0), vgetq_lane_u8(data, 0), vgetq_lane_u8(data, 1), vgetq_lane_u8(data, 1), @@ -218,7 +218,7 @@ void NEUpsampleLayerKernel::upsample_qasymm8_nhwc(const arm_compute::Window &win const int offset_y_out = _output->info()->strides_in_bytes().y() / sizeof(uint8_t); const int offset_z_out = _output->info()->strides_in_bytes().z() / sizeof(uint8_t); - execute_window_loop(window_out, [&](const Coordinates & id) + execute_window_loop(window_out, [&](const Coordinates &) { const uint8x16_t data = vld1q_u8(reinterpret_cast(input.ptr())); auto out = reinterpret_cast(output.ptr()); @@ -245,7 +245,7 @@ void NEUpsampleLayerKernel::upsample_f16_nchw(const arm_compute::Window &window) Iterator output(_output, window_out); const int offset_y_out = _output->info()->strides_in_bytes().y() / sizeof(float16_t); - execute_window_loop(window_out, [&](const Coordinates & id) + execute_window_loop(window_out, [&](const Coordinates &) { const float16x8_t data = vld1q_f16(reinterpret_cast(input.ptr())); const float16x8_t data_out1 = { vgetq_lane_f16(data, 0), vgetq_lane_f16(data, 0), vgetq_lane_f16(data, 1), vgetq_lane_f16(data, 1), @@ -278,7 +278,7 @@ void NEUpsampleLayerKernel::upsample_f16_nhwc(const arm_compute::Window &window) const int offset_y_out = _output->info()->strides_in_bytes().y() / sizeof(float16_t); const int offset_z_out = _output->info()->strides_in_bytes().z() / sizeof(float16_t); - execute_window_loop(window_out, [&](const Coordinates & id) + execute_window_loop(window_out, [&](const Coordinates &) { const float16x8_t data = vld1q_f16(reinterpret_cast(input.ptr())); auto out = reinterpret_cast(output.ptr()); -- cgit v1.2.1