Class ov::pass::MoveEltwiseUpThroughDataMovPerChannel#

class MoveEltwiseUpThroughDataMovPerChannel : public ov::pass::MatcherPass#

This transformation tries to put element-wise operations before Reshape/Squeeze/Unsqueeze ops when second input to eltwise is per-channel Constant op ┌───────────┐ ┌────────────────┐ ┌───────────┐ ┌────────────────────┐ │ AnyOp │ │ TargetShape │ │ AnyOp │ │ Per-Channel Const │ └─────┬─────┘ └────────┬───────┘ └─────┬─────┘ └─────────┬──────────┘ │ │ │ │ │ | │ | │ ┌─────────┐ │ │ ┌──────────────┐ │ └───┤ Reshape ├────────┘ => └───┤ Element-Wise ├─────────┘ └────┬────┘ └───────┬──────┘ │ │ │ │ ┌───────┴────────┐ ┌────────────────────┐ ┌─────┴─────┐ ┌─────────────┐ │ Element-Wise ├────┤ Per-Channel Const │ │ Reshape ├────┤ TargetShape │ └────────────────┘ └────────────────────┘ └───────────┘ └─────────────┘