Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikolajcz committed Mar 14, 2024
1 parent 26f554b commit 728127f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontends/pytorch/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ void align_eltwise_input_types(const NodeContext& context,
ov::Output<ov::Node> tmp_lhs = lhs;
ov::Output<ov::Node> tmp_rhs = rhs;
// Python scalar has lower priority than any tensor with any dimension.
// If only one input is PyScalar, replace it with const to mitigate issues with dynamic type caused by dynamic shape.
// If only one input is PyScalar, replace it with const to mitigate issues with dynamic type caused by dynamic
// shape.
if (is_lhs_python_scalar && !is_rhs_python_scalar) {
tmp_lhs = context.mark_node(std::make_shared<opset10::ConvertLike>(const_0, lhs));
tmp_rhs = context.mark_node(std::make_shared<opset10::ConvertLike>(const_1, rhs));
Expand Down

0 comments on commit 728127f

Please sign in to comment.