BUG FIX : Concat GPU Layer and CPU layer unittest cases name overlapping.
authorNiket Agarwal <niket.a@samsung.com>
Thu, 1 Aug 2024 05:56:52 +0000 (11:26 +0530)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 1 Aug 2024 23:06:28 +0000 (08:06 +0900)
Modified the concat gpu testcases name in unittest_layers_concat_cl for differentiation with concat cpu testcases name.

**Self evaluation:**
1. Build test:   [X]Passed [ ]Failed [ ]Skipped
2. Run test:     [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Niket Agarwal <niket.a@samsung.com>
test/unittest/layers/unittest_layers_concat_cl.cpp

index 9c456a6dcee3921e1b5698c806cef608dd2b8aef..19a00f1cc3731af91de94dee327fad685b98c994 100644 (file)
@@ -24,41 +24,43 @@ auto semantic_concat_gpu = LayerSemanticsParamType(
 GTEST_PARAMETER_TEST(ConcatGPU, LayerSemanticsGpu,
                      ::testing::Values(semantic_concat_gpu));
 
-auto concat_dim3 = LayerGoldenTestParamType(
+auto concat_dim3_gpu = LayerGoldenTestParamType(
   nntrainer::createLayer<nntrainer::ConcatLayerCl>, {"axis=3"},
   "2:3:3:2,2:3:3:3", "concat_dim3.nnlayergolden",
   LayerGoldenTestParamOptions::SKIP_CALC_DERIV, "nchw", "fp32", "fp32");
 
-auto concat_dim2 = LayerGoldenTestParamType(
+auto concat_dim2_gpu = LayerGoldenTestParamType(
   nntrainer::createLayer<nntrainer::ConcatLayerCl>, {"axis=2"},
   "2:3:2:3,2:3:3:3", "concat_dim2.nnlayergolden",
   LayerGoldenTestParamOptions::SKIP_CALC_DERIV, "nchw", "fp32", "fp32");
 
-auto concat_dim1 = LayerGoldenTestParamType(
+auto concat_dim1_gpu = LayerGoldenTestParamType(
   nntrainer::createLayer<nntrainer::ConcatLayerCl>, {"axis=1"},
   "2:2:3:3,2:3:3:3", "concat_dim1.nnlayergolden",
   LayerGoldenTestParamOptions::SKIP_CALC_DERIV, "nchw", "fp32", "fp32");
 
 GTEST_PARAMETER_TEST(ConcatGPU, LayerGoldenTest,
-                     ::testing::Values(concat_dim3, concat_dim2, concat_dim1));
+                     ::testing::Values(concat_dim3_gpu, concat_dim2_gpu,
+                                       concat_dim1_gpu));
 
 #ifdef ENABLE_FP16
-auto concat_dim3_w16a16 = LayerGoldenTestParamType(
+auto concat_dim3_w16a16_gpu = LayerGoldenTestParamType(
   nntrainer::createLayer<nntrainer::ConcatLayerCl>, {"axis=3"},
   "2:3:3:2,2:3:3:3", "concat_dim3_w16a16.nnlayergolden",
   LayerGoldenTestParamOptions::SKIP_CALC_DERIV, "nchw", "fp16", "fp16");
 
-auto concat_dim2_w16a16 = LayerGoldenTestParamType(
+auto concat_dim2_w16a16_gpu = LayerGoldenTestParamType(
   nntrainer::createLayer<nntrainer::ConcatLayerCl>, {"axis=2"},
   "2:3:2:3,2:3:3:3", "concat_dim2_w16a16.nnlayergolden",
   LayerGoldenTestParamOptions::SKIP_CALC_DERIV, "nchw", "fp16", "fp16");
 
-auto concat_dim1_w16a16 = LayerGoldenTestParamType(
+auto concat_dim1_w16a16_gpu = LayerGoldenTestParamType(
   nntrainer::createLayer<nntrainer::ConcatLayerCl>, {"axis=1"},
   "2:2:3:3,2:3:3:3", "concat_dim1_w16a16.nnlayergolden",
   LayerGoldenTestParamOptions::SKIP_CALC_DERIV, "nchw", "fp16", "fp16");
 
 GTEST_PARAMETER_TEST(ConcatGPU16, LayerGoldenTest,
-                     ::testing::Values(concat_dim3_w16a16, concat_dim2_w16a16,
-                                       concat_dim1_w16a16));
+                     ::testing::Values(concat_dim3_w16a16_gpu,
+                                       concat_dim2_w16a16_gpu,
+                                       concat_dim1_w16a16_gpu));
 #endif