Change enum type 80/288180/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 13 Feb 2023 05:02:37 +0000 (14:02 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Mon, 13 Feb 2023 05:57:32 +0000 (14:57 +0900)
The one of mediavision's enum was deprecated which used in modality_vision.
So, it changed from MV_INFERENCE_TARGET_TYPE to MV_INFERENCE_TARGET_DEVICE_TYPE.

Change-Id: Ia14e71f6652c479fb5084c8c25e9ebe1e780c8be

src/modules/modality_vision/vision.c

index 9e57da6..8db02cc 100644 (file)
@@ -221,7 +221,7 @@ int engine_config_hosted_tflite_cpu(mv_engine_config_h handle,
        RET_IF_FAIL(mv_engine_config_set_int_attribute(
                        handle, MV_INFERENCE_BACKEND_TYPE, MV_INFERENCE_BACKEND_TFLITE));
        RET_IF_FAIL(mv_engine_config_set_int_attribute(
-                       handle, MV_INFERENCE_TARGET_TYPE, MV_INFERENCE_TARGET_CPU));
+                       handle, MV_INFERENCE_TARGET_DEVICE_TYPE, MV_INFERENCE_TARGET_DEVICE_CPU));
        if (meta_file != NULL)
                RET_IF_FAIL(mv_engine_config_set_string_attribute(
                        handle, MV_INFERENCE_MODEL_META_FILE_PATH, meta_file));