aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ConversionUtils_1_2.hpp4
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)