aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2020-04-23 10:21:11 +0100
committerSang-Hoon Park <sang-hoon.park@arm.com>2020-04-23 13:30:04 +0000
commitcf0f6bc057e0eb37a0d12ffbcb9060d4844e85ac (patch)
tree4d26d450c7dee37a3aa384ff4b329532f9f0559b
parentb70770ee65ccce71a74e73df55fcaeac3cb9d0d7 (diff)
downloadComputeLibrary-cf0f6bc057e0eb37a0d12ffbcb9060d4844e85ac.tar.gz
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 <sang-hoon.park@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3082 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--arm_compute/runtime/NEON/functions/NEQLSTMLayer.h8
1 files 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<NEQLSTMLayerNormalizationKernel, _layer_norm_count> _layer_norms{};
+ std::array<NEQLSTMLayerNormalizationKernel, _layer_norm_count> _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<const ITensor *, _layer_norm_count> _layer_norm_weights{};
- std::array<const ITensor *, _layer_norm_count> _layer_norm_bias{};
+ std::array<const ITensor *, _layer_norm_count> _layer_norm_weights{ {} };
+ std::array<const ITensor *, _layer_norm_count> _layer_norm_bias{ {} };
using LayerNormIndexType = typename std::underlying_type<LayerNormGate>::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<Tensor, _layer_norm_count> _layer_norm_output{};
+ std::array<Tensor, _layer_norm_count> _layer_norm_output{ {} };
inline Tensor &get_layer_norm_output(LayerNormGate g)
{