From 3fe3a54c3071dabcbbe2bb44da1aa5a920e6e1f7 Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Wed, 25 May 2022 09:35:37 +0100 Subject: IVGCVSW-696 Coverity: Variable declared without initializing Signed-off-by: Cathal Corbett Change-Id: Ibf9bfa28099b476862ff6ac87e10ff28db8ff3ad --- ConversionUtils_1_2.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp index b07d38de..171d61bd 100644 --- a/ConversionUtils_1_2.hpp +++ b/ConversionUtils_1_2.hpp @@ -2670,7 +2670,7 @@ bool ConvertLstm(const HalOperation& operation, const HalModel& model, Conversio // If set to 0.0 then clipping is disabled. // 22: The clipping threshold: for the output from the projection layer, such that values are bound within // [-proj_clip, proj_clip]. If set to 0.0 then clipping is disabled. - ActivationFn activation; + ActivationFn activation = ActivationFn::kActivationNone; float cellClip; float projClip; if (!GetInputActivationFunctionFromTensor(operation, 20, activation, model, data) || @@ -3315,7 +3315,7 @@ bool ConvertUnidirectionalSequenceLstm(const HalOperation& operation, // 22: The clipping threshold: for the output from the projection layer, such that values are bound within // [-proj_clip, proj_clip]. If set to 0.0 then clipping is disabled. // Determine data type of input tensor - ActivationFn activation; + ActivationFn activation = ActivationFn::kActivationNone; LstmDescriptor desc; if (inputType == HalOperandType::TENSOR_FLOAT32) -- cgit v1.2.1