Skip to content

Commit

Permalink
Update onnx_import.in.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor authored Dec 18, 2023
1 parent f78ed46 commit 15f6344
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/frontends/onnx/tests/onnx_import.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6119,10 +6119,9 @@ OPENVINO_TEST(${BACKEND_NAME}, onnx_model_greater_or_equal_float) {
}

OPENVINO_TEST(${BACKEND_NAME}, onnx_model_bitwise_and) {
auto function = onnx_import::import_onnx_model(
file_util::path_join(ov::test::utils::getExecutableDirectory(), SERIALIZED_ZOO, "onnx/bitwise_and.onnx"));
auto model = convert_model("bitwise_and.onnx");

auto test_case = ov::test::TestCase(function, s_device);
auto test_case = ov::test::TestCase(model, s_device);
test_case.add_input<int>(Shape{5}, {1, 2, 3, 4, 5});
test_case.add_input<int>(Shape{5}, {5, 5, 5, 5, 5});
test_case.add_expected_output<int>(Shape{5}, {1, 0, 1, 4, 5});
Expand All @@ -6131,11 +6130,9 @@ OPENVINO_TEST(${BACKEND_NAME}, onnx_model_bitwise_and) {
}

OPENVINO_TEST(${BACKEND_NAME}, onnx_model_bitwise_and_broadcast_condition) {
auto function = onnx_import::import_onnx_model(file_util::path_join(ov::test::utils::getExecutableDirectory(),
SERIALIZED_ZOO,
"onnx/bitwise_and_broadcast_condition.onnx"));
auto model = convert_model("bitwise_and_broadcast_condition.onnx");

auto test_case = ov::test::TestCase(function, s_device);
auto test_case = ov::test::TestCase(model, s_device);
test_case.add_input<int>(Shape{5}, {1, 2, 3, 4, 5});
test_case.add_input<int>(Shape{1}, {4});
test_case.add_expected_output<int>(Shape{5}, {0, 0, 0, 4, 4});
Expand Down

0 comments on commit 15f6344

Please sign in to comment.