Remove obsoleted v0::Not operator (#2846)
* Remove obsoleted v0::Not operator * restore tests from ngraph/test/backend
This commit is contained in:
@@ -49,7 +49,7 @@ NGRAPH_TEST(${BACKEND_NAME}, not)
|
||||
{
|
||||
Shape shape{2, 2};
|
||||
auto A = make_shared<op::Parameter>(element::boolean, shape);
|
||||
auto f = make_shared<Function>(make_shared<op::Not>(A), ParameterVector{A});
|
||||
auto f = make_shared<Function>(make_shared<op::v1::LogicalNot>(A), ParameterVector{A});
|
||||
|
||||
std::vector<char> a{1, 0, 1, 0};
|
||||
|
||||
@@ -63,7 +63,7 @@ NGRAPH_TEST(${BACKEND_NAME}, not_i32)
|
||||
{
|
||||
Shape shape{2, 2};
|
||||
auto A = make_shared<op::Parameter>(element::i32, shape);
|
||||
auto f = make_shared<Function>(make_shared<op::Not>(A), ParameterVector{A});
|
||||
auto f = make_shared<Function>(make_shared<op::v1::LogicalNot>(A), ParameterVector{A});
|
||||
|
||||
std::vector<int32_t> a{1, 0, 2, 0};
|
||||
|
||||
@@ -194,27 +194,6 @@ NGRAPH_TEST(${BACKEND_NAME}, zero_sized_negative)
|
||||
make_unary_empty_test<op::Negative>("${BACKEND_NAME}");
|
||||
}
|
||||
|
||||
NGRAPH_TEST(${BACKEND_NAME}, zero_sized_not)
|
||||
{
|
||||
Shape shape{0};
|
||||
auto A = make_shared<op::Parameter>(element::from<char>(), shape);
|
||||
auto f = make_shared<Function>(make_shared<op::Not>(A), ParameterVector{A});
|
||||
|
||||
auto backend = runtime::Backend::create("${BACKEND_NAME}");
|
||||
|
||||
auto a = backend->create_tensor(element::from<char>(), shape);
|
||||
auto result = backend->create_tensor(element::from<char>(), shape);
|
||||
|
||||
auto handle = backend->compile(f);
|
||||
handle->call_with_validate({result}, {a});
|
||||
|
||||
auto in_vec = read_vector<char>(a);
|
||||
auto out_vec = read_vector<char>(result);
|
||||
|
||||
EXPECT_EQ(in_vec.size(), 0);
|
||||
EXPECT_EQ(out_vec.size(), 0);
|
||||
}
|
||||
|
||||
NGRAPH_TEST(${BACKEND_NAME}, zero_sized_sign)
|
||||
{
|
||||
make_unary_empty_test<op::Sign>("${BACKEND_NAME}");
|
||||
|
||||
Reference in New Issue
Block a user