Fix coverity issue(UNINIT) accepted/tizen/unified/20220110.140037 submit/tizen/20220105.080154 submit/tizen/20220105.081745
authorHyunsoo Park <hance.park@samsung.com>
Wed, 5 Jan 2022 08:09:30 +0000 (17:09 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 5 Jan 2022 08:10:23 +0000 (17:10 +0900)
Change-Id: I68042a27111ae7cd0de362ce318fb84118c81b3c
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
Fix merge-conflict.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/inference-engine-mlapi.spec
src/inference_engine_mlapi.cpp

index 6be3452..8f06c9c 100644 (file)
@@ -1,7 +1,7 @@
 Name:       inference-engine-mlapi
 Summary:    ML Single API backend of NNStreamer for MediaVision
 Version:    0.4.0
-Release:    0
+Release:    1
 Group:      Multimedia/Libraries
 License:    Apache-2.0
 ExclusiveArch: %{arm} aarch64
index c079ee3..c5ef761 100644 (file)
@@ -551,6 +551,7 @@ namespace MLAPIImpl
 
                        tensor_info.data_type = static_cast<inference_tensor_data_type_e>(type);
                        tensor_info.size = in_size;
+                       tensor_info.shape_type = INFERENCE_TENSOR_SHAPE_NCHW;
 
                        property.layers.insert(std::make_pair(input.first, tensor_info));
 
@@ -629,6 +630,7 @@ namespace MLAPIImpl
 
                        tensor_info.data_type = static_cast<inference_tensor_data_type_e>(type);
                        tensor_info.size = out_size;
+                       tensor_info.shape_type = INFERENCE_TENSOR_SHAPE_NCHW;
 
                        property.layers.insert(std::make_pair(output.first, tensor_info));