Commit d0dd4d6c authored by Michał Karzyński's avatar Michał Karzyński Committed by Scott Cyphers

Unify test names for opset transformation passes (#3755)

* Unify test names for opset transformation passes

* Unify downgrade test names
parent b26a53e2
......@@ -10,7 +10,7 @@
using namespace std;
using namespace ngraph;
TEST(upgrade_pass, opset1_convolution_pass)
TEST(opset_transform, opset1_convolution_upgrade_pass)
{
auto data = make_shared<op::Parameter>(element::f32, Shape{1, 3, 6, 9});
auto filters = make_shared<op::Parameter>(element::f32, Shape{1, 3, 3, 3});
......
......@@ -25,7 +25,7 @@
using namespace std;
using namespace ngraph;
TEST(serialize, opset1_dyn_reshape_upgrade)
TEST(opset_transform, opset1_dyn_reshape_upgrade_pass)
{
const auto arg = make_shared<op::Parameter>(element::f32, Shape{1, 2, 3});
const auto pattern = make_shared<op::Parameter>(element::i64, Shape{6});
......
......@@ -25,7 +25,7 @@
using namespace std;
using namespace ngraph;
TEST(serialize, opset1_gather_pass)
TEST(opset_transform, opset1_gather_upgrade_pass)
{
auto params = make_shared<op::Parameter>(element::f32, Shape{5, 6});
auto indices = make_shared<op::Parameter>(element::i64, Shape{4});
......
......@@ -10,7 +10,7 @@
using namespace std;
using namespace ngraph;
TEST(opset_upgrade, opset1_pad_upgrade_pass)
TEST(opset_transform, opset1_pad_upgrade_pass)
{
auto arg = make_shared<op::Parameter>(element::f32, Shape{5, 6});
auto arg_pad_value = make_shared<op::Parameter>(element::f32, Shape{});
......@@ -39,7 +39,7 @@ TEST(opset_upgrade, opset1_pad_upgrade_pass)
EXPECT_EQ(pad_v1_node->get_pads_end(), padding_above);
}
TEST(opset_downgrade, opset1_pad_downgrade_pass)
TEST(opset_transform, opset1_pad_downgrade_pass)
{
auto arg = make_shared<op::Parameter>(element::f32, Shape{5, 6});
auto arg_pad_value = make_shared<op::Parameter>(element::f32, Shape{});
......
......@@ -10,7 +10,7 @@
using namespace std;
using namespace ngraph;
TEST(upgrade_pass, opset1_avgpool_pass)
TEST(opset_transform, opset1_avgpool_upgrade_pass)
{
auto arg = make_shared<op::Parameter>(element::f32, Shape{1, 3, 6, 9});
Shape pads_begin{0, 0};
......@@ -46,7 +46,7 @@ TEST(upgrade_pass, opset1_avgpool_pass)
EXPECT_EQ(avg_pool_v1_node->get_auto_pad(), pad_mode);
}
TEST(upgrade_pass, opset1_maxpool_pass)
TEST(opset_transform, opset1_maxpool_upgrade_pass)
{
auto arg = make_shared<op::Parameter>(element::f32, Shape{1, 3, 6, 9});
Shape pads_begin{0, 0};
......
......@@ -26,7 +26,7 @@
using namespace std;
using namespace ngraph;
TEST(opset_upgrade, opset1_reverse_upgrade)
TEST(opset_transform, opset1_reverse_upgrade_pass)
{
const auto data = make_shared<op::Parameter>(element::f32, Shape{2, 2, 2});
const AxisSet reverse_axes{1, 2};
......@@ -52,7 +52,7 @@ TEST(opset_upgrade, opset1_reverse_upgrade)
EXPECT_EQ(rev_axes_input_shape, Shape{2});
}
TEST(opset_downgrade, opset0_reverse_downgrade_index_mode)
TEST(opset_transform, opset0_reverse_downgrade_pass_index_mode)
{
const auto data = make_shared<op::Parameter>(element::f32, Shape{2, 2, 2});
const auto reverse_axes =
......@@ -76,7 +76,7 @@ TEST(opset_downgrade, opset0_reverse_downgrade_index_mode)
EXPECT_EQ(reverse_v0->get_reversed_axes(), AxisSet({1, 2}));
}
TEST(opset_downgrade, opset0_reverse_downgrade_mask_mode)
TEST(opset_transform, opset0_reverse_downgrade_pass_mask_mode)
{
const auto data = make_shared<op::Parameter>(element::f32, Shape{2, 2, 2});
const auto reverse_axes =
......@@ -100,7 +100,7 @@ TEST(opset_downgrade, opset0_reverse_downgrade_mask_mode)
EXPECT_EQ(reverse_v0->get_reversed_axes(), AxisSet({0, 2}));
}
TEST(opset_downgrade, opset0_reverse_downgrade_axes_not_constant)
TEST(opset_transform, opset0_reverse_downgrade_pass_axes_not_constant)
{
const auto data = make_shared<op::Parameter>(element::f32, Shape{2, 2, 2});
const auto axes = make_shared<op::Parameter>(element::boolean, Shape{3});
......
......@@ -25,7 +25,7 @@
using namespace std;
using namespace ngraph;
TEST(serialize, opset1_softmax_pass_axis)
TEST(opset_transform, opset1_softmax_upgrade_pass_axis)
{
const size_t axis = 2;
const AxisSet axes{axis};
......@@ -47,7 +47,7 @@ TEST(serialize, opset1_softmax_pass_axis)
EXPECT_EQ(softmax_s1_node->get_version(), 1);
}
TEST(serialize, opset1_softmax_pass_axis_exception)
TEST(opset_transform, opset1_softmax_upgrade_pass_axis_exception)
{
const AxisSet axes{1, 2};
auto arg = make_shared<op::Parameter>(element::f32, Shape{2, 3, 4});
......@@ -89,7 +89,7 @@ namespace fake_v2
};
}
TEST(serialize, opset1_softmax_pass_incorrect_op_version)
TEST(opset_transform, opset1_softmax_upgrade_pass_incorrect_op_version)
{
const AxisSet axes{2};
auto arg = make_shared<op::Parameter>(element::f32, Shape{2, 3, 4});
......
......@@ -25,7 +25,7 @@
using namespace std;
using namespace ngraph;
TEST(serialize, opset1_topk_pass)
TEST(opset_transform, opset1_topk_upgrade_pass)
{
const size_t axis = 2;
const size_t k = 10;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment