Fix uninitialized scalar variable 61/286261/2 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20230103.121418 submit/tizen_6.5/20230103.045954
authorTae-Young Chung <ty83.chung@samsung.com>
Tue, 3 Jan 2023 02:41:09 +0000 (11:41 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Tue, 3 Jan 2023 02:46:48 +0000 (11:46 +0900)
[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 <ty83.chung@samsung.com>
packaging/inference-engine-mlapi.spec
src/inference_engine_mlapi.cpp

index a6c4f9a..215dff7 100644 (file)
@@ -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
index 766abc7..aaa5f8d 100644 (file)
@@ -684,9 +684,8 @@ namespace MLAPIImpl
 
                        tensor_info.data_type = static_cast<inference_tensor_data_type_e>(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<inference_tensor_data_type_e>(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.