User Details
- User Since
- Mar 21 2021, 3:58 PM (104 w, 21 h)
May 11 2022
LGTM! @ftynse could you help to double check because I am not super confident either.
May 10 2022
May 9 2022
I left some comments but I am also pretty new to this. Hope someone who's expert on this help to take a look.
Apr 26 2022
Apr 25 2022
Move the comment about dynamic stride to a more propriate place
Thanks for the review!
Address comments.
Apr 24 2022
Fixed the previous error about dominance.
Apr 23 2022
Apr 22 2022
Calculate with the new logic at runtime. I got an error about dominance here https://gist.github.com/949dafb96801866cf067b5baba4ac614. It's complaining the last mem ref descriptor doesn't dominate the use tensor.collapse_shape but it seems to me it does dominate tensor.collapse_shape.
Fix test cases
Address comments
Apr 21 2022
Apr 20 2022
Factored out the part fixing size 1 cases into https://reviews.llvm.org/D124137.
The remaining memref to llvm lowering part needs to be updated to
take into consideration where the dynamic size is 1 as well.
Apr 19 2022
Fix testcases format
Clean ups
- Fix cases where all collapsed dims in an association are size 1.
- Fix tests.
Apr 7 2022
LGTM. Thanks for the patch!
@gysit Could you help to double check?
Apr 5 2022
Apr 4 2022
Nov 29 2021
Nov 22 2021
Sep 22 2021
Sep 21 2021
Jul 30 2021
Jul 29 2021
address comments
Jul 26 2021
minor fix
remove redundant argument
minor changes to commit title
fix with canonicalizer pattern instead of folder
Jul 25 2021
I think a better way to fix this is to use a canonicalizing pattern. Will modify the patch to do that.
Jul 23 2021
@mravishankar Thanks a lot for reviewing! I don't have commit permission. Could you please also help me to land the change?
@gysit Hey Tobias, thanks a lot for reviewing! Could you please also help me land the change? I don't have commit access yet.
update description
clean up format
Jul 16 2021
minor changes
Jul 13 2021
LGTM
Jul 8 2021
remove the integration test and add IR unit test instead
Add an integration test for dynamic shape case when testing padtensor
lowering. Add comments to be more descriptive.
Jul 2 2021
delete redundant comments as suggested
move the new pattern's source code next to PadTensorOpTransformationPattern for
consistency
add the pattern into linalg bufferization pass
@silvas @nicolasvasilache @springerm Any suggestion on which pass to put this pattern in? There is a LinalgGeneralizationPass which currently only applies to patterns lowering to Linalg.generic.
update comments that's no longer relevant.
refactor and reuse existing code as suggested.
Jul 1 2021
@nicolasvasilache seems with the rewrite pattern version the integration test passed but there are some failures in the unit test. Will need to take a closer look tmr. Here is the unit test.
func @pad_tensor(%arg0: tensor<4x?x2x?xf32>, %arg1: index) -> tensor<4x?x?x?xf32> { %cst = constant 0.0 : f32 %out = linalg.pad_tensor %arg0 low[0, 0, %arg1, 0] high[0, 0, 0, %arg1] { ^bb0(%gen_arg1: index, %gen_arg2: index, %gen_arg3: index, %gen_arg4: index): // no predecessors linalg.yield %cst : f32 } : tensor<4x?x2x?xf32> to tensor<4x?x?x?xf32> return %out : tensor<4x?x?x?xf32> }
use rewrite pattern instead
address comments
remove redundant type check
delete redundant comments
Mar 22 2021
didn't see https://github.com/llvm/llvm-project/commit/113baa2b9fd3c8db30d33ecc3f068af48dcce52d. closing this one.