From 36931242174dfd82a5c2df5453b1f6fc931b64c7 Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Wed, 13 May 2020 16:45:12 +0900 Subject: [PATCH] [MediaVision] Fix wrong key string value (#1602) * [MediaVision] Fix wrong key string value Wrong key string value of MV_INFERENCE_TARGET_DEVICE. In NativeACR, MV_INFERENCE_TARGET_DEVICE_TYPE is added. This patch fix it. Signed-off-by: Tae-Young Chung * [MediaVision] Fix _keyTargetDevice to _keyTargetDeviceType Signed-off-by: Tae-Young Chung --- .../MediaVision/InferenceModelConfiguration.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs index f0401a5..3909f9c 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/InferenceModelConfiguration.cs @@ -46,7 +46,7 @@ namespace Tizen.Multimedia.Vision private const string _keyModelStdValue = "MV_INFERENCE_MODEL_STD_VALUE"; private const string _keyBackendType = "MV_INFERENCE_BACKEND_TYPE"; private const string _keyTargetType = "MV_INFERENCE_TARGET_TYPE"; - private const string _keyTargetDevice = "MV_INFERENCE_TARGET_DEVICE"; + private const string _keyTargetDeviceType = "MV_INFERENCE_TARGET_DEVICE_TYPE"; private const string _keyInputTensorWidth = "MV_INFERENCE_INPUT_TENSOR_WIDTH"; private const string _keyInputTensorHeight = "MV_INFERENCE_INPUT_TENSOR_HEIGHT"; private const string _keyInputTensorChannels = "MV_INFERENCE_INPUT_TENSOR_CHANNELS"; @@ -353,13 +353,13 @@ namespace Tizen.Multimedia.Vision { get { - return (InferenceTargetDevice)GetInt(_keyTargetDevice); + return (InferenceTargetDevice)GetInt(_keyTargetDeviceType); } set { ValidationUtil.ValidateEnum(typeof(InferenceTargetDevice), value, nameof(Device)); - Set(_keyTargetDevice, (int)value); + Set(_keyTargetDeviceType, (int)value); } } -- 2.7.4