-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change calculation of reassociation indicies in ConvertConvToChannels…
…Last.cpp (#17668) - Added `GreedyRewriteConfig` set to `kNoLimit` since the patterns were failing to converge within the 10 iterations - Changed the way re-association indices are calculated for `GeneralizeOuterUnitDimsPackOps`. (There might be a helper function somewhere for this but i couldn't find one) #### Before (verification error) ```mlir %30042 = "tensor.expand_shape"(%30041) <{reassociation = [[0, 1], [2, 3], [4], [5]], static_output_shape = array<i64: 1, 1, 3, 3, 320, 4>}> : (tensor<3x3x320x4xi8>) -> tensor<1x1x3x3x320x4xi8> ``` #### After ```mlir %30042 = "tensor.expand_shape"(%30041) <{reassociation = [[0, 1, 2], [3], [4], [5]], static_output_shape = array<i64: 1, 1, 3, 3, 320, 4>}> : (tensor<3x3x320x4xi8>) -> tensor<1x1x3x3x320x4xi8> ``` #17643 --------- Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
- Loading branch information
Showing
2 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters