From cf0f6bc057e0eb37a0d12ffbcb9060d4844e85ac Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Thu, 23 Apr 2020 10:21:11 +0100 Subject: COMPMID-3406: Fix build issue of gcc <= 5.4 Use double pairs of curly brackets to initizalie std::array. (Single pair of brackets doesn't cause issue with gcc >= 6.3) Change-Id: I1e49e92f44ffd5f359cce804d6c2c899b2f10f66 Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3082 Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- arm_compute/runtime/NEON/functions/NEQLSTMLayer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arm_compute/runtime/NEON/functions/NEQLSTMLayer.h b/arm_compute/runtime/NEON/functions/NEQLSTMLayer.h index 312a8984b5..0553e4f266 100644 --- a/arm_compute/runtime/NEON/functions/NEQLSTMLayer.h +++ b/arm_compute/runtime/NEON/functions/NEQLSTMLayer.h @@ -265,7 +265,7 @@ private: NEGEMMLowpOutputStage _projection_outstage{}; NEArithmeticAdditionKernel _accumulate_projection{}; NEActivationLayer _projection_clip{}; - std::array _layer_norms{}; + std::array _layer_norms{ {} }; // Tensor pointers const ITensor *_input_to_input_weights{ nullptr }; @@ -278,8 +278,8 @@ private: const ITensor *_recurrent_to_cell_weights{ nullptr }; const ITensor *_recurrent_to_output_weights{ nullptr }; const ITensor *_projection_weights{ nullptr }; - std::array _layer_norm_weights{}; - std::array _layer_norm_bias{}; + std::array _layer_norm_weights{ {} }; + std::array _layer_norm_bias{ {} }; using LayerNormIndexType = typename std::underlying_type::type; inline LayerNormIndexType getGateIndex(LayerNormGate g) @@ -381,7 +381,7 @@ private: Tensor _mm_projection_res{ nullptr }; Tensor _projection_outstage_res{ nullptr }; Tensor _ones{ nullptr }; - std::array _layer_norm_output{}; + std::array _layer_norm_output{ {} }; inline Tensor &get_layer_norm_output(LayerNormGate g) { -- cgit v1.2.1