mv_machine_learning: bug fix to tensor buffer allocation 35/287835/1
authorInki Dae <inki.dae@samsung.com>
Tue, 7 Feb 2023 04:24:05 +0000 (13:24 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 7 Feb 2023 04:28:02 +0000 (13:28 +0900)
[Version] : 0.26.6
[Issue type] : bug fix

Fixed a bug to wrong tensor buffer allocation since commit-id
ee852016683c6fed53fdddcc54ebea2c9212e4ff

For the output tensor, we have to allocate the output tensor buffer
not input tensor one.

Change-Id: I0653e7726666ae122e42e52d6ced8874d2b1ac3c
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/inference/src/Inference.cpp
packaging/capi-media-vision.spec

index b6d7170..0681849 100644 (file)
@@ -720,10 +720,10 @@ int Inference::PrepareTenosrBuffers(void)
                for (auto &layer : mOutputLayerProperty.layers) {
                        inference_engine_tensor_buffer tensor_buffer;
 
-                       ret = mInputTensorBuffers.allocate(tensor_buffer, layer.second);
+                       ret = mOutputTensorBuffers.allocate(tensor_buffer, layer.second);
                        if (ret != INFERENCE_ENGINE_ERROR_NONE) {
                                LOGE("Fail to allocate tensor buffer.");
-                               mInputTensorBuffers.release();
+                               mOutputTensorBuffers.release();
                                return ret;
                        }
 
index 7a1db55..217969c 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.26.5
+Version:     0.26.6
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause