diff options
author | Cathal Corbett <cathal.corbett@arm.com> | 2022-05-25 09:35:37 +0100 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2022-05-25 09:35:37 +0100 |
commit | 3fe3a54c3071dabcbbe2bb44da1aa5a920e6e1f7 (patch) | |
tree | 5a34935bb3e9903a5d0737d484f4d92142f00da9 /ConversionUtils_1_2.hpp | |
parent | 8f22bedb266d7d285ef9111c5d7ef36e58e8fd16 (diff) | |
download | android-nn-driver-3fe3a54c3071dabcbbe2bb44da1aa5a920e6e1f7.tar.gz |
IVGCVSW-696 Coverity: Variable declared without initializing
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: Ibf9bfa28099b476862ff6ac87e10ff28db8ff3ad
Diffstat (limited to 'ConversionUtils_1_2.hpp')
-rw-r--r-- | ConversionUtils_1_2.hpp | 4 |
1 files 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<HalPolicy>(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) |