diff --git a/src/tim/vx/context_test.cc b/src/tim/vx/context_test.cc index 75fcd48..1ea5270 100644 --- a/src/tim/vx/context_test.cc +++ b/src/tim/vx/context_test.cc @@ -28,5 +28,6 @@ TEST(Context, create) { auto ctx0 = tim::vx::Context::Create(); {auto ctx0 = tim::vx::Context::Create();} auto ctx1 = tim::vx::Context::Create(); - // EXPECT_TRUE(0); + EXPECT_TRUE(nullptr != ctx0); + EXPECT_TRUE(nullptr != ctx1); } \ No newline at end of file diff --git a/src/tim/vx/ops/conv1d_test.cc b/src/tim/vx/ops/conv1d_test.cc index 8f9c8d0..6c1b6bd 100644 --- a/src/tim/vx/ops/conv1d_test.cc +++ b/src/tim/vx/ops/conv1d_test.cc @@ -40,7 +40,7 @@ template } } -TEST(Conv1d, ksize_1_stride_1_weights_3_no_bias_whcn_shape_3_6_1_float) { +TEST(Conv1d, shape_3_6_1_float_ksize_1_stride_1_weights_3_no_bias_whcn) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); @@ -58,7 +58,7 @@ TEST(Conv1d, ksize_1_stride_1_weights_3_no_bias_whcn_shape_3_6_1_float) { auto output_tensor = graph->CreateTensor(output_spec); std::vector in_data = { - -1, 0, 1, + -1, 0, 1, -1.5, 0.5, 1.5, -2, -0.5, 2, -2.5, 0, 2.5, @@ -91,7 +91,7 @@ TEST(Conv1d, ksize_1_stride_1_weights_3_no_bias_whcn_shape_3_6_1_float) { EXPECT_TRUE(ArraysMatch(golden, output, 1e-5f)); } -TEST(Conv1d, ksize_6_stride_1_weights_2_whcn_shape_6_2_1_uint8) { +TEST(Conv1d, shape_6_2_1_uint8_ksize_6_stride_1_weights_2_whcn) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); @@ -157,7 +157,7 @@ TEST(Conv1d, ksize_6_stride_1_weights_2_whcn_shape_6_2_1_uint8) { EXPECT_TRUE(ArraysMatch(golden, output, static_cast(0))); } -TEST(Conv1d, ksize_3_stride_1_pad_1_weights_2_no_bias_whcn_shape_6_2_1_uint8) { +TEST(Conv1d, shape_6_2_1_uint8_ksize_3_stride_1_pad_1_weights_2_no_bias_whcn) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); @@ -212,7 +212,7 @@ TEST(Conv1d, ksize_3_stride_1_pad_1_weights_2_no_bias_whcn_shape_6_2_1_uint8) { #if 0 // Fail case // Internal impl conv1d don't support multiplier, need wait for the fix. -TEST(Conv1d, ksize_3_stride_2_multiplier_1_whcn_shape_7_2_1_uint8) { +TEST(Conv1d, shape_7_2_1_uint8_ksize_3_stride_2_multiplier_1_whcn) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); diff --git a/src/tim/vx/ops/deconv2d_test.cc b/src/tim/vx/ops/deconv2d_test.cc index f443f18..6fc75ad 100644 --- a/src/tim/vx/ops/deconv2d_test.cc +++ b/src/tim/vx/ops/deconv2d_test.cc @@ -17,7 +17,7 @@ size_t element_count(const tim::vx::ShapeType& shape) { } // namespace -TEST(OP, deconv_depthwise_two_channel) { +TEST(deconv2d, shape_3_3_2_1_float_depthwise) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); @@ -85,7 +85,7 @@ TEST(OP, deconv_depthwise_two_channel) { EXPECT_EQ(golden, output_data) << "Result mismatch"; } -TEST(OP, deconv_single_channel) { +TEST(deconv2d, shape_3_3_1_1_float) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); diff --git a/src/tim/vx/ops/instancenormalization_test.cc b/src/tim/vx/ops/instancenormalization_test.cc index 5b102f8..18d6d47 100644 --- a/src/tim/vx/ops/instancenormalization_test.cc +++ b/src/tim/vx/ops/instancenormalization_test.cc @@ -40,7 +40,7 @@ template } } -TEST(OP, instance_norm_shape_3_6_1_float) { +TEST(instance_norm, shape_3_6_1_float) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph(); @@ -97,7 +97,7 @@ TEST(OP, instance_norm_shape_3_6_1_float) { EXPECT_TRUE(ArraysMatch(golden, output, 1e-5f)); } -TEST(OP, instance_norm_shape_3_3_6_1_float) { +TEST(instance_norm, shape_3_3_6_1_float) { auto ctx = tim::vx::Context::Create(); auto graph = ctx->CreateGraph();