Class ov::pass::MoveEltwiseUpThroughDataMovScalar#
-
class MoveEltwiseUpThroughDataMovScalar : public ov::pass::MatcherPass#
This transformation tries to put element-wise operations (Unary or Binary with scalar second input) before a set of data movement ops in order to allow further element-wise op fusion to previous op and zero-copy optimizations for data movement op itself. ┌───────────┐ ┌───────────┐ │ AnyOp │ │ AnyOp │ └─────┬─────┘ └─────┬─────┘ │ │ │ │ ┌───────┴────────┐ ┌───────┴────────┐ | DataMovementOp | => | Element-Wise | └───────┬────────┘ └───────┬────────┘ │ │ │ │ ┌───────┴────────┐ ┌───────┴────────┐ │ Element-Wise | │ DataMovementOp | └────────────────┘ └────────────────┘