test/machine_learning: fix build error submit/tizen/20220720.053259
authorInki Dae <inki.dae@samsung.com>
Wed, 20 Jul 2022 05:20:47 +0000 (14:20 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 20 Jul 2022 05:20:47 +0000 (14:20 +0900)
[Issue type] bug fix

Fixed a build error by dropping duplicated declarations.

Change-Id: I594dc6e508c895a531f5944a597bbc6cb7972eee
Signed-off-by: Inki Dae <inki.dae@samsung.com>
test/testsuites/machine_learning/inference/inference_test_suite.c

index f5dc3b7..135081b 100644 (file)
@@ -553,33 +553,6 @@ clean_mv_inference:
        return err;
 }
 
-int engine_config_hosted_tflite_cpu(mv_engine_config_h handle,
-                                                                       const char *tf_weight,
-                                                                       const char *meta_file)
-{
-       RET_IF_FAIL(mv_engine_config_set_string_attribute(
-                       handle, MV_INFERENCE_MODEL_WEIGHT_FILE_PATH, tf_weight));
-       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));
-       if (meta_file != NULL)
-               RET_IF_FAIL(mv_engine_config_set_string_attribute(
-                       handle, MV_INFERENCE_MODEL_META_FILE_PATH, meta_file));
-       return MEDIA_VISION_ERROR_NONE;
-}
-
-int engine_config_user_hosted_tflite_cpu(mv_engine_config_h handle,
-                                                                                const char *tf_weight,
-                                                                                const char *user_file,
-                                                                                const char *meta_file)
-{
-       RET_IF_FAIL(engine_config_hosted_tflite_cpu(handle, tf_weight, meta_file));
-       RET_IF_FAIL(mv_engine_config_set_string_attribute(
-                       handle, MV_INFERENCE_MODEL_USER_FILE_PATH, user_file));
-       return MEDIA_VISION_ERROR_NONE;
-}
-
 int perform_configure_set_model_config_path(mv_engine_config_h engine_cfg)
 {
        int err = MEDIA_VISION_ERROR_NONE;
@@ -1827,4 +1800,4 @@ int main()
        if (err != MEDIA_VISION_ERROR_NONE)
                printf("Fail to perform task. ERROR[0x%x]\n", err);
        return err;
-}
\ No newline at end of file
+}