From 9a24eba21dbb5a3ee24ff8ffd15e8ca24d885b16 Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Tue, 3 Jan 2023 11:41:09 +0900 Subject: [PATCH] Fix uninitialized scalar variable [Version] 0.0.8-0 [Issue type] bug fix tensor_info.shape_type should be intialized with a value regardless of any build option as _DA_RVC_65 Change-Id: Ifcf1cfac7503deaad160d96cd92b84e7f5e4649c Signed-off-by: Tae-Young Chung --- packaging/inference-engine-mlapi.spec | 2 +- src/inference_engine_mlapi.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packaging/inference-engine-mlapi.spec b/packaging/inference-engine-mlapi.spec index a6c4f9a..215dff7 100644 --- a/packaging/inference-engine-mlapi.spec +++ b/packaging/inference-engine-mlapi.spec @@ -1,6 +1,6 @@ Name: inference-engine-mlapi Summary: ML Single API backend of NNStreamer for MediaVision -Version: 0.0.7 +Version: 0.0.8 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/inference_engine_mlapi.cpp b/src/inference_engine_mlapi.cpp index 766abc7..aaa5f8d 100644 --- a/src/inference_engine_mlapi.cpp +++ b/src/inference_engine_mlapi.cpp @@ -684,9 +684,8 @@ namespace MLAPIImpl tensor_info.data_type = static_cast(type); tensor_info.size = in_size; -#ifdef _DA_RVC_65 tensor_info.shape_type = INFERENCE_TENSOR_SHAPE_NCHW; -#endif + property.layers.insert(std::make_pair(input.first, tensor_info)); // TODO. Compare tensor info from engine to one from a given property. @@ -770,9 +769,8 @@ namespace MLAPIImpl tensor_info.data_type = static_cast(type); tensor_info.size = out_size; -#ifdef _DA_RVC_65 tensor_info.shape_type = INFERENCE_TENSOR_SHAPE_NCHW; -#endif + property.layers.insert(std::make_pair(output.first, tensor_info)); // TODO. Compare tensor info from engine to one from a given property. -- 2.34.1