From: Tae-Young Chung Date: Tue, 3 Jan 2023 02:41:09 +0000 (+0900) Subject: Fix uninitialized scalar variable X-Git-Tag: accepted/tizen/6.5/unified/20230103.121418^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_6.5_unified;p=platform%2Fcore%2Fmultimedia%2Finference-engine-mlapi.git 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 --- 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.