ONE icon indicating copy to clipboard operation
ONE copied to clipboard

[one-optmize] Introduce ForwardTransposeOpPass

Open jinevening opened this issue 3 years ago • 1 comments

What

Let's introduce ForwardTranseposeOpPass.

Why

This moves Transpose Ops to the rear part, finding a chance to optimize redundant Transpose Ops (similar to ForwardReshapeToUnaryOpPass).

Before image

After image

jinevening avatar Oct 18 '22 06:10 jinevening

This reduces the latency of one of our target models.

6.2 ms -> 5.6 ms

jinevening avatar Oct 18 '22 07:10 jinevening