One: [Compiler][luci] Supporting more optimizations

Created on 21 Sep 2020  路  9Comments  路  Source: Samsung/ONE

Background

As more luci::Pass is introduced, there are more optimizations we need.
This issue is for collecting those new optimizations as of now.

List up

  • [x] Remove duplicate Transpose #5062
    Exampletranspose
  • [x] Substitute Pack to Reshape when Pack has only one input. #5180
    Example
    pack
  • [x] Remove duplicate Reshape #5266
    Example
    reshape2
  • [x] Remove no-effect Slice #5416
    Example
    slice
  • [x] Remove no-effect StridedSlice #5757
    Example
    strided_slice3
  • [x] Remove no-effect Split #5456
    Example
    split
  • [x] Remove no-effect Reshape #5575
    Example
    reshape2
  • [x] Fold Dequantize #4373
    Exampleimage
  • [ ] Fuse BiasAdd or Add to FullyConnected

    Example
    TBD

    Suggestion

  • [x] Change Transpose to Reshape on certain condition. #5703

    Example
    image

help wanted

All 9 comments

Is it okay for me to implement Remove Duplicate Transpose?

@struss If so, thanks for me :)

@llFreetimell could I add a pass for Remove no-effect Split pass also? I think this is similar to Remove no-effect Slice

@struss Sure, this issue is for listing up any further optimizations :)

Follow from this, is it okay for add a pass for Transpose To Reshape?

  • Remove duplicate Reshape

@llFreetimell What about change this into bypassing reshape? if first reshape have more than 2 successor, it will not activate.

@struss

What about change this into bypassing reshape?

How about RemoveRedundantReshapePass? Because we already have RemoveRedundantTranspose.

@struss

What about change this into bypassing reshape?

How about RemoveRedundantReshapePass? Because we already have RemoveRedundantTranspose.

Okay I will use RemoveRedundantReshapePass.

When more optimization is needed, those will can be created as separate issue :)
So, I will close this issue!
Thanks for all!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

binarman picture binarman  路  3Comments

periannath picture periannath  路  3Comments

periannath picture periannath  路  3Comments

jinevening picture jinevening  路  3Comments

seanshpark picture seanshpark  路  3Comments