From 998aad8441656e05fa03f3ba6e9f21dd8b4cb6ab Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Wed, 30 Mar 2022 10:18:26 +0900 Subject: [PATCH] Add UserBuffer to customOp with true [Version] 0.0.5-0 [Issue type] bug fix In mlapi, snpe filter causes segfault while handling multiple outputs and the UserBuffer customOp is a solution for the issue. This commit is for inference-engine-mlapi to apply UserBuffer customOp to mlapi. Note that the UserBuffer customOp is valid only for snpe. If an invalid customOp is given, for example the UserBuffer customOp for tflite, mlapi ignore it. Change-Id: Id8bb0e3a83b8b72b73258dd1c8e1325bf3532650 Signed-off-by: Tae-Young Chung --- packaging/inference-engine-mlapi.spec | 2 +- src/inference_engine_mlapi.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/inference-engine-mlapi.spec b/packaging/inference-engine-mlapi.spec index 6628d6d..b2c72fd 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.4 +Version: 0.0.5 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/inference_engine_mlapi.cpp b/src/inference_engine_mlapi.cpp index 56bafe9..2473a8c 100644 --- a/src/inference_engine_mlapi.cpp +++ b/src/inference_engine_mlapi.cpp @@ -314,6 +314,8 @@ namespace MLAPIImpl custom += ";"; } } + + custom += ",UserBuffer:true"; } return custom; -- 2.34.1