test/machine_learning: fix device attribute type 19/269219/2
authorInki Dae <inki.dae@samsung.com>
Tue, 11 Jan 2022 11:26:14 +0000 (20:26 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 12 Jan 2022 04:33:13 +0000 (13:33 +0900)
[Version] : 0.12.1-0
[Issue type] : bug fix

Fixed device attribute type. Legacy device attribute type has been
deprecated so use new one.

Change-Id: Ia31a5be01595e6d39f3dff783e5b4d0982987e86
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/capi-media-vision.spec
test/testsuites/machine_learning/inference/test_inference_helper.cpp

index 2aeff26..8af3d73 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.12.0
+Version:     0.12.1
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause
index 9d5c95b..c041f48 100644 (file)
@@ -46,8 +46,8 @@ void engine_config_hosted_cpu_tflite_user_model(mv_engine_config_h handle,
                                                                                                 MV_INFERENCE_BACKEND_TFLITE),
                          MEDIA_VISION_ERROR_NONE);
        EXPECT_EQ(mv_engine_config_set_int_attribute(handle,
-                                                                                                MV_INFERENCE_TARGET_TYPE,
-                                                                                                MV_INFERENCE_TARGET_CPU),
+                                                                                                MV_INFERENCE_TARGET_DEVICE_TYPE,
+                                                                                                MV_INFERENCE_TARGET_DEVICE_CPU),
                          MEDIA_VISION_ERROR_NONE);
 
        EXPECT_EQ(mv_engine_config_set_string_attribute(
@@ -67,11 +67,11 @@ void engine_config_hosted_cpu_snpe_user_model(mv_engine_config_h handle,
                                                                                                 MV_INFERENCE_BACKEND_SNPE),
                          MEDIA_VISION_ERROR_NONE);
        EXPECT_EQ(mv_engine_config_set_int_attribute(handle,
-                                                                                                MV_INFERENCE_TARGET_TYPE,
-                                                                                                MV_INFERENCE_TARGET_CPU),
+                                                                                                MV_INFERENCE_TARGET_DEVICE_TYPE,
+                                                                                                MV_INFERENCE_TARGET_DEVICE_CPU),
                          MEDIA_VISION_ERROR_NONE);
 
        EXPECT_EQ(mv_engine_config_set_string_attribute(
                                          handle, MV_INFERENCE_MODEL_USER_FILE_PATH, user_file),
                          MEDIA_VISION_ERROR_NONE);
-}
\ No newline at end of file
+}