Refine unit test case name (#70)

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
This commit is contained in:
Sven 2021-05-25 11:19:42 +08:00 committed by GitHub
parent f90f3eedfd
commit df77848c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 10 deletions

View File

@ -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);
}

View File

@ -40,7 +40,7 @@ template<typename T>
}
}
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<float> 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<uint8_t>(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();

View File

@ -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();

View File

@ -40,7 +40,7 @@ template<typename T>
}
}
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();