Skip to content

Commit

Permalink
move_up_eltwise_before_reshape_callback_update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhu-wang committed Nov 20, 2024
1 parent 3d79013 commit f56a598
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,8 @@ void Transformations::PostLpt() {
CPU_DISABLE_PASS_COMMON(postLPTPassManager, ov::pass::MoveEltwiseUpThroughDataMovPerChannel);
CPU_SET_CALLBACK_COMMON(postLPTPassManager,
[](const std::shared_ptr<const ov::Node>& node) -> bool {
if (!ov::is_type<const ov::op::v0::FakeQuantize>(node) && node->get_output_element_type(0) != node->get_input_element_type(0))
if (!ov::is_type<const ov::op::v0::FakeQuantize>(node) &&
node->get_output_element_type(0).size() > node->get_input_element_type(0).size())
return true;
if (node->get_input_size() >= 2) {
return node->get_input_element_type(1) == ov::element::i8 ||
Expand Down

0 comments on commit f56a598

Please sign in to comment.