Skip to content

Commit

Permalink
Fix typo in align types function (openvinotoolkit#18474)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvafin authored Jul 14, 2023
1 parent 84bf359 commit 73ed804
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/frontends/pytorch/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void align_eltwise_input_types(const NodeContext& context, Output<Node>& lhs, Ou
if (otype != lhs_type) {
lhs = context.mark_node(std::make_shared<ov::op::v0::Convert>(lhs, otype));
}
if (otype != lhs_type) {
if (otype != rhs_type) {
rhs = context.mark_node(std::make_shared<ov::op::v0::Convert>(rhs, otype));
}
return;
Expand Down
20 changes: 6 additions & 14 deletions tests/layer_tests/pytorch_tests/test_min_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,9 @@ def forward(self, x: float, y: float):
{"first_input": 0, "second_input": 1, "dtype": "int"},
{"first_input": 1, "second_input": 1, "dtype": "int"},
{"first_input": 2, "second_input": 1, "dtype": "int"},
# is not supported by OV
pytest.param({"first_input": 0, "second_input": 1,
"dtype": "bool"}, marks=pytest.mark.xfail),
pytest.param({"first_input": 1, "second_input": 1,
"dtype": "bool"}, marks=pytest.mark.xfail),
pytest.param({"first_input": 2, "second_input": 1,
"dtype": "bool"}, marks=pytest.mark.xfail),
{"first_input": 0, "second_input": 1, "dtype": "bool"},
{"first_input": 1, "second_input": 1, "dtype": "bool"},
{"first_input": 2, "second_input": 1, "dtype": "bool"},
])
@pytest.mark.nightly
@pytest.mark.precommit
Expand Down Expand Up @@ -187,13 +183,9 @@ def forward(self, x: float, y: float):
{"first_input": 0, "second_input": 1, "dtype": "int"},
{"first_input": 1, "second_input": 1, "dtype": "int"},
{"first_input": 2, "second_input": 1, "dtype": "int"},
# is not supported by OV
pytest.param({"first_input": 0, "second_input": 1,
"dtype": "bool"}, marks=pytest.mark.xfail),
pytest.param({"first_input": 1, "second_input": 1,
"dtype": "bool"}, marks=pytest.mark.xfail),
pytest.param({"first_input": 2, "second_input": 1,
"dtype": "bool"}, marks=pytest.mark.xfail),
{"first_input": 0, "second_input": 1, "dtype": "bool"},
{"first_input": 1, "second_input": 1, "dtype": "bool"},
{"first_input": 2, "second_input": 1, "dtype": "bool"},
])
@pytest.mark.nightly
@pytest.mark.precommit
Expand Down

0 comments on commit 73ed804

Please sign in to comment.