Skip to content

Commit

Permalink
[Test] testcase with tf-lite ver1.x
Browse files Browse the repository at this point in the history
We will remove tf-lite ver1.x on tizen release, fix related testcase.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
  • Loading branch information
jaeyun-jung committed Jan 9, 2024
1 parent a66f081 commit 84eb910
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/capi/unittest_capi_inference_single.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4157,11 +4157,11 @@ TEST (nnstreamer_capi_ml_option, tensorflow_lite)
g_free (test_model);
}

#if defined(ENABLE_TENSORFLOW_LITE) && defined(ENABLE_TENSORFLOW2_LITE)
#if defined(ENABLE_TENSORFLOW_LITE) || defined(ENABLE_TENSORFLOW2_LITE)
/**
* @brief Test ml_option with tensorflow1-lite (manually set by ml_option_se, NULLt)
* @brief Test ml_option with tensorflow-lite (manually set by ml_option_set, framework_name=tensorflow-lite)
*/
TEST (nnstreamer_capi_ml_option, tensorflow1_lite)
TEST (nnstreamer_capi_ml_option, fw_name_tensorflow_lite)
{
int status;
ml_option_h option;
Expand Down Expand Up @@ -4214,7 +4214,7 @@ TEST (nnstreamer_capi_ml_option, tensorflow1_lite)
status = ml_option_set (option, "nnfw", &nnfw_type, NULL);
EXPECT_EQ (ML_ERROR_NONE, status);

gchar *fw_name = g_strdup ("tensorflow1-lite");
gchar *fw_name = g_strdup ("tensorflow-lite");
status = ml_option_set (option, "framework_name", fw_name, g_free);
EXPECT_EQ (ML_ERROR_NONE, status);

Expand Down

0 comments on commit 84eb910

Please sign in to comment.