aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute')
-rw-r--r--arm_compute/core/CL/OpenCL.h1
-rw-r--r--arm_compute/core/Helpers.inl1
-rw-r--r--arm_compute/core/NEON/NEColorConvertHelper.inl48
-rw-r--r--arm_compute/core/NEON/kernels/NEBoundingBoxTransformKernel.h2
-rw-r--r--arm_compute/core/NEON/kernels/NEGenerateProposalsLayerKernel.h2
-rw-r--r--arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedMatrixMultiplyWrapper.h2
-rw-r--r--arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedTransformAWrapper.h2
-rw-r--r--arm_compute/core/NEON/kernels/assembly/gemm_common.hpp4
-rw-r--r--arm_compute/core/NEON/wrapper/intrinsics/inv.h1
-rw-r--r--arm_compute/core/Validate.h1
-rw-r--r--arm_compute/core/utils/logging/LogMsgDecorators.h3
-rw-r--r--arm_compute/core/utils/misc/ShapeCalculator.h2
-rw-r--r--arm_compute/core/utils/misc/Utility.h3
-rw-r--r--arm_compute/graph/INodeVisitor.h50
-rw-r--r--arm_compute/graph/backends/FunctionHelpers.h3
-rw-r--r--arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h1
-rw-r--r--arm_compute/runtime/NEON/functions/assembly/NEGEMMInterleavedWrapper.h1
17 files changed, 72 insertions, 55 deletions
diff --git a/arm_compute/core/CL/OpenCL.h b/arm_compute/core/CL/OpenCL.h
index fc7083d276..912a53103a 100644
--- a/arm_compute/core/CL/OpenCL.h
+++ b/arm_compute/core/CL/OpenCL.h
@@ -37,6 +37,7 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#if defined(__GNUG__) && __GNUG__ >= 8
#pragma GCC diagnostic ignored "-Wcatch-value"
#endif // defined(__GNUG__) && __GNUG__ >= 8
diff --git a/arm_compute/core/Helpers.inl b/arm_compute/core/Helpers.inl
index aeb290b23e..29f31c12c8 100644
--- a/arm_compute/core/Helpers.inl
+++ b/arm_compute/core/Helpers.inl
@@ -114,6 +114,7 @@ struct ForEachDimension<0>
template <typename L, typename... Ts>
static void unroll(const Window &w, Coordinates &id, L &&lambda_function, Ts &&... iterators)
{
+ ARM_COMPUTE_UNUSED(w, iterators...);
lambda_function(id);
}
};
diff --git a/arm_compute/core/NEON/NEColorConvertHelper.inl b/arm_compute/core/NEON/NEColorConvertHelper.inl
index 7540d33830..68f437116c 100644
--- a/arm_compute/core/NEON/NEColorConvertHelper.inl
+++ b/arm_compute/core/NEON/NEColorConvertHelper.inl
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2018 ARM Limited.
+ * Copyright (c) 2016-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -80,12 +80,12 @@ inline void convert_float32x4x4_to_unit8x16(const float32x4x4_t &in, uint8x16_t
out = vcombine_u8(vqmovn_u16(low), vqmovn_u16(high));
}
-inline float32x4_t rgb_to_greyscale_calculation(const float32x4_t &rcolor,const float32x4_t &gcolor, const float32x4_t &bcolor,
- const float rcoef, const float gcoef, const float bcoef)
+inline float32x4_t rgb_to_greyscale_calculation(const float32x4_t &rcolor, const float32x4_t &gcolor, const float32x4_t &bcolor,
+ const float rcoef, const float gcoef, const float bcoef)
{
float32x4_t greyscale = vmulq_n_f32(rcolor, rcoef);
- greyscale = vmlaq_n_f32(greyscale, gcolor, gcoef);
- greyscale = vmlaq_n_f32(greyscale, bcolor, bcoef);
+ greyscale = vmlaq_n_f32(greyscale, gcolor, gcoef);
+ greyscale = vmlaq_n_f32(greyscale, bcolor, bcoef);
return greyscale;
}
@@ -101,16 +101,16 @@ inline void rgb_to_u8_conversion(const uint8x16x3_t &in, uint8x16_t &out)
//New grayscale image = ( (RED_COEFF * R) + (GREEN_COEFF * G) + (BLUE_COEFF * B) )
//Computation of 1(Greyscale) 4 uint8 using 3(RGB) 4 uint8s float
out_float32.val[0] = rgb_to_greyscale_calculation(r_float32.val[0], g_float32.val[0], b_float32.val[0],
- rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
+ rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
out_float32.val[1] = rgb_to_greyscale_calculation(r_float32.val[1], g_float32.val[1], b_float32.val[1],
- rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
+ rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
out_float32.val[2] = rgb_to_greyscale_calculation(r_float32.val[2], g_float32.val[2], b_float32.val[2],
- rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
+ rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
out_float32.val[3] = rgb_to_greyscale_calculation(r_float32.val[3], g_float32.val[3], b_float32.val[3],
- rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
+ rgb2u8_red_coef, rgb2u8_green_coef, rgb2u8_blue_coef);
//Conversion from 1(Greyscale) 4 floats to 1(Greyscale) 4 uint8s
convert_float32x4x4_to_unit8x16(out_float32, out);
@@ -359,7 +359,7 @@ void colorconvert_rgb_to_rgbx(const void *__restrict input, void *__restrict out
Iterator in(input_ptr, win);
Iterator out(output_ptr, win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta1 = vld3q_u8(in.ptr());
uint8x16x4_t ta2;
@@ -390,7 +390,7 @@ void colorconvert_rgb_to_u8(const void *__restrict input, void *__restrict outpu
Iterator in(input_ptr, win);
Iterator out(output_ptr, win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta1 = vld3q_u8(in.ptr());
uint8x16_t ta2;
@@ -418,7 +418,7 @@ void colorconvert_rgbx_to_rgb(const void *input, void *output, const Window &win
Iterator in(input_ptr, win);
Iterator out(output_ptr, win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta1 = vld4q_u8(in.ptr());
uint8x16x3_t ta2;
@@ -452,7 +452,7 @@ void colorconvert_yuyv_to_rgb(const void *__restrict input, void *__restrict out
Iterator in(input_ptr, win);
Iterator out(output_ptr, win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta = vld4q_u8(in.ptr());
//ta.val[0] = Y0 Y2 Y4 Y6 ...
@@ -505,7 +505,7 @@ void colorconvert_nv12_to_rgb(const void *__restrict input, void *__restrict out
Iterator in_uv(input_ptr->plane(1), win_uv);
Iterator out(output_ptr, win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_y_top = vld2q_u8(in_y.ptr());
const auto ta_y_bottom = vld2q_u8(in_y.ptr() + input_ptr->plane(0)->info()->strides_in_bytes().y());
@@ -567,7 +567,7 @@ void colorconvert_iyuv_to_rgb(const void *__restrict input, void *__restrict out
Iterator in_v(input_ptr->plane(2), win_uv);
Iterator out(output_ptr, win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_y_top = vld2q_u8(in_y.ptr());
const auto ta_y_bottom = vld2q_u8(in_y.ptr() + input_ptr->plane(0)->info()->strides_in_bytes().y());
@@ -628,7 +628,7 @@ void colorconvert_yuyv_to_nv12(const void *__restrict input, void *__restrict ou
Iterator out_y(output_ptr->plane(0), win);
Iterator out_uv(output_ptr->plane(1), win_uv);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_top = vld4q_u8(in.ptr());
const auto ta_bottom = vld4q_u8(in.ptr() + input_ptr->info()->strides_in_bytes().y());
@@ -683,7 +683,7 @@ void colorconvert_iyuv_to_nv12(const void *__restrict input, void *__restrict ou
Iterator out_y(output_ptr->plane(0), win);
Iterator out_uv(output_ptr->plane(1), win_uv);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_y_top = vld2q_u8(in_y.ptr());
const auto ta_y_bottom = vld2q_u8(in_y.ptr() + input_ptr->plane(0)->info()->strides_in_bytes().y());
@@ -733,7 +733,7 @@ void colorconvert_nv12_to_iyuv(const void *__restrict input, void *__restrict ou
Iterator out_u(output_ptr->plane(1), win_uv);
Iterator out_v(output_ptr->plane(2), win_uv);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_y_top = vld2q_u8(in_y.ptr());
const auto ta_y_bottom = vld2q_u8(in_y.ptr() + input_ptr->plane(0)->info()->strides_in_bytes().y());
@@ -781,7 +781,7 @@ void colorconvert_yuyv_to_iyuv(const void *__restrict input, void *__restrict ou
Iterator out_u(output_ptr->plane(1), win_uv);
Iterator out_v(output_ptr->plane(2), win_uv);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_top = vld4q_u8(in.ptr());
const auto ta_bottom = vld4q_u8(in.ptr() + input_ptr->info()->strides_in_bytes().y());
@@ -842,7 +842,7 @@ void colorconvert_nv12_to_yuv4(const void *__restrict input, void *__restrict ou
Iterator out_u(output_ptr->plane(1), win);
Iterator out_v(output_ptr->plane(2), win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_y_top = vld2q_u8(in_y.ptr());
const auto ta_y_bottom = vld2q_u8(in_y.ptr() + input_ptr->plane(0)->info()->strides_in_bytes().y());
@@ -899,7 +899,7 @@ void colorconvert_iyuv_to_yuv4(const void *__restrict input, void *__restrict ou
Iterator out_u(output_ptr->plane(1), win);
Iterator out_v(output_ptr->plane(2), win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_y_top = vld2q_u8(in_y.ptr());
const auto ta_y_bottom = vld2q_u8(in_y.ptr() + input_ptr->plane(0)->info()->strides_in_bytes().y());
@@ -955,7 +955,7 @@ void colorconvert_rgb_to_nv12(const void *__restrict input, void *__restrict out
Iterator out_y(output_ptr->plane(0), win);
Iterator out_uv(output_ptr->plane(1), win_uv);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_rgb_top = load_rgb(in.ptr(), alpha);
const auto ta_rgb_bottom = load_rgb(in.ptr() + input_ptr->info()->strides_in_bytes().y(), alpha);
@@ -999,7 +999,7 @@ void colorconvert_rgb_to_iyuv(const void *__restrict input, void *__restrict out
Iterator out_u(output_ptr->plane(1), win_uv);
Iterator out_v(output_ptr->plane(2), win_uv);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_rgb_top = load_rgb(in.ptr(), alpha);
const auto ta_rgb_bottom = load_rgb(in.ptr() + input_ptr->info()->strides_in_bytes().y(), alpha);
@@ -1037,7 +1037,7 @@ void colorconvert_rgb_to_yuv4(const void *__restrict input, void *__restrict out
Iterator out_u(output_ptr->plane(1), win);
Iterator out_v(output_ptr->plane(2), win);
- execute_window_loop(win, [&](const Coordinates & id)
+ execute_window_loop(win, [&](const Coordinates &)
{
const auto ta_rgb = load_rgb(in.ptr(), alpha);
//ta_rgb.val[0] = R0 R1 R2 R3 ...
diff --git a/arm_compute/core/NEON/kernels/NEBoundingBoxTransformKernel.h b/arm_compute/core/NEON/kernels/NEBoundingBoxTransformKernel.h
index c2b3862b13..70dd0f6a5f 100644
--- a/arm_compute/core/NEON/kernels/NEBoundingBoxTransformKernel.h
+++ b/arm_compute/core/NEON/kernels/NEBoundingBoxTransformKernel.h
@@ -84,7 +84,7 @@ public:
private:
template <typename T>
- void internal_run(const Window &window, const ThreadInfo &info);
+ void internal_run(const Window &window);
const ITensor *_boxes;
ITensor *_pred_boxes;
diff --git a/arm_compute/core/NEON/kernels/NEGenerateProposalsLayerKernel.h b/arm_compute/core/NEON/kernels/NEGenerateProposalsLayerKernel.h
index 9ee9d5dd08..9b129c2066 100644
--- a/arm_compute/core/NEON/kernels/NEGenerateProposalsLayerKernel.h
+++ b/arm_compute/core/NEON/kernels/NEGenerateProposalsLayerKernel.h
@@ -75,7 +75,7 @@ public:
private:
template <typename T>
- void internal_run(const Window &window, const ThreadInfo &info);
+ void internal_run(const Window &window);
const ITensor *_anchors;
ITensor *_all_anchors;
diff --git a/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedMatrixMultiplyWrapper.h b/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedMatrixMultiplyWrapper.h
index 40b6f5da39..641f88ee5f 100644
--- a/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedMatrixMultiplyWrapper.h
+++ b/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedMatrixMultiplyWrapper.h
@@ -165,7 +165,7 @@ public:
// Merge the result with the other blocks' results:
strat.transforms.Merge(c(0, 0, batch, wl._multi), tmp_c(0, info.thread_id), c.stride(1), y, ymax, wl._x0, wl._xmax, _alpha, (wl._k0 == 0 ? _beta : static_cast<typename strategy::result_type>(1)));
});
- auto on_new_row_size = [&](unsigned int start, unsigned int end)
+ auto on_new_row_size = [&](unsigned int, unsigned int)
{
//Nothing to do
};
diff --git a/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedTransformAWrapper.h b/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedTransformAWrapper.h
index b18d327339..c1fd86e453 100644
--- a/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedTransformAWrapper.h
+++ b/arm_compute/core/NEON/kernels/assembly/NEGEMMInterleavedTransformAWrapper.h
@@ -139,7 +139,7 @@ public:
a.stride(1), first_m, last_m, wl._k0, wl._kmax, _transpose_a);
}
});
- auto on_new_row_size = [&](unsigned int start, unsigned int end)
+ auto on_new_row_size = [&](unsigned int, unsigned int end)
{
last_m = std::min(end, _Msize);
};
diff --git a/arm_compute/core/NEON/kernels/assembly/gemm_common.hpp b/arm_compute/core/NEON/kernels/assembly/gemm_common.hpp
index f59a61703f..1ae503cddb 100644
--- a/arm_compute/core/NEON/kernels/assembly/gemm_common.hpp
+++ b/arm_compute/core/NEON/kernels/assembly/gemm_common.hpp
@@ -25,6 +25,8 @@
#include <cstddef>
+#define UNUSED(x) (void)(x)
+
namespace arm_gemm {
// Abstract class for the GEMM/GEMV functions.
@@ -95,7 +97,7 @@ public:
/*** "Quantized bias" interface (optional) ***/
/* Set the bias vector for quantized GEMMs */
- virtual void set_quantized_bias(const int32_t *bias) { }
+ virtual void set_quantized_bias(const int32_t *bias) { UNUSED(bias); }
// Destructor
virtual ~IGemmCommon() { }
diff --git a/arm_compute/core/NEON/wrapper/intrinsics/inv.h b/arm_compute/core/NEON/wrapper/intrinsics/inv.h
index acb2c91feb..9e2db58395 100644
--- a/arm_compute/core/NEON/wrapper/intrinsics/inv.h
+++ b/arm_compute/core/NEON/wrapper/intrinsics/inv.h
@@ -40,6 +40,7 @@ namespace wrapper
#define VINV_IMPL_INT(vtype, prefix, postfix) \
inline vtype vinv(const vtype &a) \
{ \
+ ARM_COMPUTE_UNUSED(a); \
ARM_COMPUTE_ERROR("Not supported"); \
}
diff --git a/arm_compute/core/Validate.h b/arm_compute/core/Validate.h
index 37c7b50ec7..ab518ef687 100644
--- a/arm_compute/core/Validate.h
+++ b/arm_compute/core/Validate.h
@@ -638,6 +638,7 @@ void error_on_format_not_in(const char *function, const char *file, const int li
return f == object_format;
}),
function, file, line, "Format %s not supported by this kernel", string_from_format(object_format).c_str());
+ ARM_COMPUTE_UNUSED(function, format, file, line);
}
#define ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(t, ...) ::arm_compute::error_on_format_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__)
diff --git a/arm_compute/core/utils/logging/LogMsgDecorators.h b/arm_compute/core/utils/logging/LogMsgDecorators.h
index 03a2d41f12..7c5b58b633 100644
--- a/arm_compute/core/utils/logging/LogMsgDecorators.h
+++ b/arm_compute/core/utils/logging/LogMsgDecorators.h
@@ -24,6 +24,7 @@
#ifndef __ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H__
#define __ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H__
+#include "arm_compute/core/Error.h"
#include "arm_compute/core/utils/logging/Helpers.h"
#include "arm_compute/core/utils/logging/Types.h"
@@ -120,6 +121,8 @@ public:
{
#ifndef NO_MULTI_THREADING
log_msg.raw_ += angle_wrap_value(std::this_thread::get_id());
+#else /* NO_MULTI_THREADING */
+ ARM_COMPUTE_UNUSED(log_msg);
#endif /* NO_MULTI_THREADING */
}
};
diff --git a/arm_compute/core/utils/misc/ShapeCalculator.h b/arm_compute/core/utils/misc/ShapeCalculator.h
index 65a2a1edf4..c4c360842f 100644
--- a/arm_compute/core/utils/misc/ShapeCalculator.h
+++ b/arm_compute/core/utils/misc/ShapeCalculator.h
@@ -859,6 +859,7 @@ inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo
*/
inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo &input1, const GEMMReshapeInfo &gemm_info)
{
+ ARM_COMPUTE_UNUSED(input1);
ARM_COMPUTE_ERROR_ON_MSG(input0.num_dimensions() > 4, "The number of dimensions for the matrix A must be <= 4");
const bool reinterpret_input_as_3d = gemm_info.reinterpret_input_as_3d();
@@ -896,6 +897,7 @@ inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo
*/
inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo &input1, const GEMMKernelInfo &gemm_info)
{
+ ARM_COMPUTE_UNUSED(input1);
ARM_COMPUTE_ERROR_ON_MSG(input0.num_dimensions() > 4, "The number of dimensions for the matrix A must be <= 4");
const bool reinterpret_input_as_3d = gemm_info.reinterpret_input_as_3d;
diff --git a/arm_compute/core/utils/misc/Utility.h b/arm_compute/core/utils/misc/Utility.h
index 2325644e72..d27a3cf75e 100644
--- a/arm_compute/core/utils/misc/Utility.h
+++ b/arm_compute/core/utils/misc/Utility.h
@@ -65,7 +65,7 @@ struct generate_array<T, 0, val, vals...>
static constexpr std::array<T, sizeof...(vals)> value{ vals... };
};
-template <typename T, T val, T... vals>
+template <typename T, T val, T... vals>
constexpr std::array<T, sizeof...(vals)> generate_array<T, 0, val, vals...>::value;
/** @endcond */
@@ -83,6 +83,7 @@ T make_array(Iterator first, index_sequence<S...>)
template <std::size_t N, typename Iterator>
std::array<typename std::iterator_traits<Iterator>::value_type, N> make_array(Iterator first, Iterator last)
{
+ ARM_COMPUTE_UNUSED(last);
return detail::make_array(first, index_sequence_t<N> {});
}
diff --git a/arm_compute/graph/INodeVisitor.h b/arm_compute/graph/INodeVisitor.h
index f97906d02a..c9f9d2172c 100644
--- a/arm_compute/graph/INodeVisitor.h
+++ b/arm_compute/graph/INodeVisitor.h
@@ -176,103 +176,103 @@ public:
#ifndef DOXYGEN_SKIP_THIS
// Inherited methods overridden
- virtual void visit(INode &n) override
+ virtual void visit(INode &) override
{
default_visit();
}
- virtual void visit(ActivationLayerNode &n) override
+ virtual void visit(ActivationLayerNode &) override
{
default_visit();
}
- virtual void visit(BatchNormalizationLayerNode &n) override
+ virtual void visit(BatchNormalizationLayerNode &) override
{
default_visit();
}
- virtual void visit(ConcatenateLayerNode &n) override
+ virtual void visit(ConcatenateLayerNode &) override
{
default_visit();
}
- virtual void visit(ConstNode &n) override
+ virtual void visit(ConstNode &) override
{
default_visit();
}
- virtual void visit(ConvolutionLayerNode &n) override
+ virtual void visit(ConvolutionLayerNode &) override
{
default_visit();
}
- virtual void visit(DetectionOutputLayerNode &n) override
+ virtual void visit(DetectionOutputLayerNode &) override
{
default_visit();
}
- virtual void visit(DetectionPostProcessLayerNode &n) override
+ virtual void visit(DetectionPostProcessLayerNode &) override
{
default_visit();
}
- virtual void visit(DepthwiseConvolutionLayerNode &n) override
+ virtual void visit(DepthwiseConvolutionLayerNode &) override
{
default_visit();
}
- virtual void visit(EltwiseLayerNode &n) override
+ virtual void visit(EltwiseLayerNode &) override
{
default_visit();
}
- virtual void visit(FlattenLayerNode &n) override
+ virtual void visit(FlattenLayerNode &) override
{
default_visit();
}
- virtual void visit(FullyConnectedLayerNode &n) override
+ virtual void visit(FullyConnectedLayerNode &) override
{
default_visit();
}
- virtual void visit(FusedConvolutionBatchNormalizationNode &n) override
+ virtual void visit(FusedConvolutionBatchNormalizationNode &) override
{
default_visit();
}
- virtual void visit(FusedDepthwiseConvolutionBatchNormalizationNode &n) override
+ virtual void visit(FusedDepthwiseConvolutionBatchNormalizationNode &) override
{
default_visit();
}
- virtual void visit(InputNode &n) override
+ virtual void visit(InputNode &) override
{
default_visit();
}
- virtual void visit(NormalizationLayerNode &n) override
+ virtual void visit(NormalizationLayerNode &) override
{
default_visit();
}
- virtual void visit(OutputNode &n) override
+ virtual void visit(OutputNode &) override
{
default_visit();
}
- virtual void visit(PermuteLayerNode &n) override
+ virtual void visit(PermuteLayerNode &) override
{
default_visit();
}
- virtual void visit(PoolingLayerNode &n) override
+ virtual void visit(PoolingLayerNode &) override
{
default_visit();
}
- virtual void visit(PriorBoxLayerNode &n) override
+ virtual void visit(PriorBoxLayerNode &) override
{
default_visit();
}
- virtual void visit(QuantizationLayerNode &n) override
+ virtual void visit(QuantizationLayerNode &) override
{
default_visit();
}
- virtual void visit(ReshapeLayerNode &n) override
+ virtual void visit(ReshapeLayerNode &) override
{
default_visit();
}
- virtual void visit(SoftmaxLayerNode &n) override
+ virtual void visit(SoftmaxLayerNode &) override
{
default_visit();
}
- virtual void visit(SplitLayerNode &n) override
+ virtual void visit(SplitLayerNode &) override
{
default_visit();
}
- virtual void visit(StackLayerNode &n) override
+ virtual void visit(StackLayerNode &) override
{
default_visit();
}
diff --git a/arm_compute/graph/backends/FunctionHelpers.h b/arm_compute/graph/backends/FunctionHelpers.h
index 10f8c0c5c7..94b385e81e 100644
--- a/arm_compute/graph/backends/FunctionHelpers.h
+++ b/arm_compute/graph/backends/FunctionHelpers.h
@@ -83,6 +83,7 @@ void validate_node(const INode &node, size_t num_expected_inputs, size_t num_exp
ARM_COMPUTE_ERROR_ON(TargetInfo::TargetType != node.assigned_target());
ARM_COMPUTE_ERROR_ON(node.num_inputs() != num_expected_inputs);
ARM_COMPUTE_ERROR_ON(node.num_outputs() != num_expected_outputs);
+ ARM_COMPUTE_UNUSED(node, num_expected_inputs, num_expected_outputs);
}
/** Creates a backend activation layer function
@@ -1471,6 +1472,7 @@ std::unique_ptr<arm_compute::IFunction> create_stack_layer(StackLayerNode &node)
template <typename UpsampleLayerFunction, typename TargetInfo>
std::unique_ptr<IFunction> create_upsample_layer(UpsampleLayerNode &node, GraphContext &ctx)
{
+ ARM_COMPUTE_UNUSED(ctx);
validate_node<TargetInfo>(node, 1 /* expected inputs */, 1 /* expected outputs */);
// Extract IO and info
@@ -1514,6 +1516,7 @@ std::unique_ptr<IFunction> create_upsample_layer(UpsampleLayerNode &node, GraphC
template <typename YOLOlayerFunction, typename TargetInfo>
std::unique_ptr<IFunction> create_yolo_layer(YOLOLayerNode &node, GraphContext &ctx)
{
+ ARM_COMPUTE_UNUSED(ctx);
validate_node<TargetInfo>(node, 1 /* expected inputs */, 1 /* expected outputs */);
// Extract IO and info
diff --git a/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h b/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h
index 3a13e659f9..64e98e2f4d 100644
--- a/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h
+++ b/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h
@@ -94,6 +94,7 @@ private:
void configure_conv_fc(const IGCTensor *input, const IGCTensor *weights, IGCTensor *output);
MemoryGroup _memory_group;
+ IWeightsManager *_weights_manager;
GCIm2ColKernel _im2col_kernel;
GCFullyConnectedLayerReshapeWeights _reshape_weights_kernel;
GCGEMMMatrixMultiplyKernel _mm_kernel;
diff --git a/arm_compute/runtime/NEON/functions/assembly/NEGEMMInterleavedWrapper.h b/arm_compute/runtime/NEON/functions/assembly/NEGEMMInterleavedWrapper.h
index eeea0babf1..695dcd5b6e 100644
--- a/arm_compute/runtime/NEON/functions/assembly/NEGEMMInterleavedWrapper.h
+++ b/arm_compute/runtime/NEON/functions/assembly/NEGEMMInterleavedWrapper.h
@@ -120,6 +120,7 @@ public:
private:
MemoryGroup _memory_group;
+ IWeightsManager *_weights_manager;
bool _is_prepared{ false };
bool _pretranspose_b{ false };
Window _block_walker{};