Page MenuHomePhabricator

cathyzhyi (Yi Zhang)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 21 2021, 3:58 PM (104 w, 21 h)

Recent Activity

May 11 2022

cathyzhyi accepted D125039: [mlir] translate memref.reshape ops that have static shapes.

LGTM! @ftynse could you help to double check because I am not super confident either.

May 11 2022, 12:28 PM · Restricted Project, Restricted Project

May 10 2022

cathyzhyi requested changes to D125039: [mlir] translate memref.reshape ops that have static shapes.
May 10 2022, 3:12 PM · Restricted Project, Restricted Project

May 9 2022

cathyzhyi added a comment to D125039: [mlir] translate memref.reshape ops that have static shapes.

I left some comments but I am also pretty new to this. Hope someone who's expert on this help to take a look.

May 9 2022, 4:19 PM · Restricted Project, Restricted Project

Apr 26 2022

cathyzhyi committed rGe1318078a4e1: Support non identity layout map for reshape ops in MemRefToLLVM lowering (authored by cathyzhyi).
Support non identity layout map for reshape ops in MemRefToLLVM lowering
Apr 26 2022, 10:06 AM · Restricted Project, Restricted Project
cathyzhyi closed D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 26 2022, 10:06 AM · Restricted Project, Restricted Project

Apr 25 2022

cathyzhyi retitled D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering from WIP: Support non identity layout map for reshape ops in MemRefToLLVM lowering to Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 25 2022, 2:28 PM · Restricted Project, Restricted Project
cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

Move the comment about dynamic stride to a more propriate place

Apr 25 2022, 2:28 PM · Restricted Project, Restricted Project
cathyzhyi added a comment to D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

Thanks for the review!

Apr 25 2022, 2:22 PM · Restricted Project, Restricted Project
cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

Address comments.

Apr 25 2022, 2:22 PM · Restricted Project, Restricted Project

Apr 24 2022

cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

Fixed the previous error about dominance.

Apr 24 2022, 7:38 PM · Restricted Project, Restricted Project

Apr 23 2022

cathyzhyi retitled D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering from Support non identity layout map for reshape ops in MemRefToLLVM lowering to WIP: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 23 2022, 8:07 AM · Restricted Project, Restricted Project

Apr 22 2022

cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

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.

Apr 22 2022, 7:36 PM · Restricted Project, Restricted Project
cathyzhyi committed rG1cddcfdc3c68: Fix CollapsedLayoutMap for dim size 1 case (authored by cathyzhyi).
Fix CollapsedLayoutMap for dim size 1 case
Apr 22 2022, 2:50 PM · Restricted Project, Restricted Project
cathyzhyi closed D124137: Fix CollapsedLayoutMap for dim size 1 case.
Apr 22 2022, 2:49 PM · Restricted Project, Restricted Project
cathyzhyi updated the diff for D124137: Fix CollapsedLayoutMap for dim size 1 case.

Fix test cases

Apr 22 2022, 2:41 PM · Restricted Project, Restricted Project
cathyzhyi updated the diff for D124137: Fix CollapsedLayoutMap for dim size 1 case.

Address comments

Apr 22 2022, 7:34 AM · Restricted Project, Restricted Project

Apr 21 2022

cathyzhyi added a reviewer for D124137: Fix CollapsedLayoutMap for dim size 1 case: springerm.
Apr 21 2022, 7:28 AM · Restricted Project, Restricted Project

Apr 20 2022

cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

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 20 2022, 6:20 PM · Restricted Project, Restricted Project
cathyzhyi added inline comments to D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 20 2022, 6:11 PM · Restricted Project, Restricted Project
cathyzhyi requested review of D124137: Fix CollapsedLayoutMap for dim size 1 case.
Apr 20 2022, 6:07 PM · Restricted Project, Restricted Project
cathyzhyi added inline comments to D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 20 2022, 10:15 AM · Restricted Project, Restricted Project

Apr 19 2022

cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

Fix testcases format

Apr 19 2022, 2:27 PM · Restricted Project, Restricted Project
cathyzhyi retitled D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering from WIP: Support non identity layout map for reshape ops in MemRefToLLVM lowering to Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 19 2022, 2:07 PM · Restricted Project, Restricted Project
cathyzhyi updated the summary of D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 19 2022, 2:05 PM · Restricted Project, Restricted Project
cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.

Clean ups

Apr 19 2022, 1:58 PM · Restricted Project, Restricted Project
cathyzhyi updated the diff for D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
  • Fix cases where all collapsed dims in an association are size 1.
  • Fix tests.
Apr 19 2022, 1:20 PM · Restricted Project, Restricted Project
cathyzhyi retitled D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering from Support non identity layout map for reshape ops in MemRefToLLVM lowering to WIP: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 19 2022, 6:37 AM · Restricted Project, Restricted Project
cathyzhyi requested review of D124001: Support non identity layout map for reshape ops in MemRefToLLVM lowering.
Apr 19 2022, 6:35 AM · Restricted Project, Restricted Project

Apr 7 2022

cathyzhyi accepted D123013: [mlir][Linalg] Add pooling_nchw_sum op..

LGTM. Thanks for the patch!
@gysit Could you help to double check?

Apr 7 2022, 8:28 AM · Restricted Project, Restricted Project

Apr 5 2022

cathyzhyi requested changes to D123013: [mlir][Linalg] Add pooling_nchw_sum op..
Apr 5 2022, 7:43 AM · Restricted Project, Restricted Project

Apr 4 2022

cathyzhyi added a reviewer for D123013: [mlir][Linalg] Add pooling_nchw_sum op.: gysit.
Apr 4 2022, 12:32 PM · Restricted Project, Restricted Project
cathyzhyi requested changes to D123013: [mlir][Linalg] Add pooling_nchw_sum op..
Apr 4 2022, 12:29 PM · Restricted Project, Restricted Project

Nov 29 2021

cathyzhyi added a reviewer for D114384: Fix expand folder to avoid folding memref cast: herhut.
Nov 29 2021, 11:16 AM · Restricted Project, Restricted Project

Nov 22 2021

cathyzhyi added reviewers for D114384: Fix expand folder to avoid folding memref cast: nicolasvasilache, silvas, mravishankar.
Nov 22 2021, 11:52 AM · Restricted Project, Restricted Project
cathyzhyi requested review of D114384: Fix expand folder to avoid folding memref cast.
Nov 22 2021, 11:50 AM · Restricted Project, Restricted Project

Sep 22 2021

cathyzhyi committed rGb2b63d1b9122: Reset operation when canceling root update transaction (authored by cathyzhyi).
Reset operation when canceling root update transaction
Sep 22 2021, 1:13 PM
cathyzhyi closed D110176: Reset operation when canceling root update transaction.
Sep 22 2021, 1:12 PM · Restricted Project

Sep 21 2021

cathyzhyi requested review of D110176: Reset operation when canceling root update transaction.
Sep 21 2021, 7:16 AM · Restricted Project

Jul 30 2021

cathyzhyi closed D106818: [mlir][linalg] Fix pad tensor cast folding with changed type.
Jul 30 2021, 11:38 AM · Restricted Project

Jul 29 2021

cathyzhyi committed rG9a8248231316: [mlir][linalg] Fix pad tensor cast folding with changed type (authored by cathyzhyi).
[mlir][linalg] Fix pad tensor cast folding with changed type
Jul 29 2021, 2:52 PM
cathyzhyi updated the diff for D106818: [mlir][linalg] Fix pad tensor cast folding with changed type.

address comments

Jul 29 2021, 2:16 PM · Restricted Project

Jul 26 2021

cathyzhyi retitled D106818: [mlir][linalg] Fix pad tensor cast folding with changed type from [mlir][linalg][WIP] Fix pad tensor cast folding with changed type to [mlir][linalg] Fix pad tensor cast folding with changed type.
Jul 26 2021, 1:52 PM · Restricted Project
cathyzhyi updated the diff for D106818: [mlir][linalg] Fix pad tensor cast folding with changed type.

minor fix

Jul 26 2021, 1:52 PM · Restricted Project
cathyzhyi retitled D106818: [mlir][linalg] Fix pad tensor cast folding with changed type from [mlir][linalg] Fix pad tensor cast folding with changed type to [mlir][linalg][WIP] Fix pad tensor cast folding with changed type.
Jul 26 2021, 12:39 PM · Restricted Project
cathyzhyi updated the diff for D106818: [mlir][linalg] Fix pad tensor cast folding with changed type.

remove redundant argument

Jul 26 2021, 12:25 PM · Restricted Project
cathyzhyi abandoned D106819: [mlir][linalg] Fix pad tensor cast folding with changed type.
Jul 26 2021, 12:24 PM · Restricted Project
cathyzhyi requested review of D106819: [mlir][linalg] Fix pad tensor cast folding with changed type.
Jul 26 2021, 12:23 PM · Restricted Project
cathyzhyi requested review of D106818: [mlir][linalg] Fix pad tensor cast folding with changed type.
Jul 26 2021, 12:19 PM · Restricted Project
cathyzhyi updated the diff for D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.

minor changes to commit title

Jul 26 2021, 10:52 AM · Restricted Project
cathyzhyi updated the summary of D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.
Jul 26 2021, 9:49 AM · Restricted Project
cathyzhyi updated the diff for D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.

fix with canonicalizer pattern instead of folder

Jul 26 2021, 9:47 AM · Restricted Project

Jul 25 2021

cathyzhyi added a comment to D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.

I think a better way to fix this is to use a canonicalizing pattern. Will modify the patch to do that.

Jul 25 2021, 7:52 PM · Restricted Project
cathyzhyi retitled D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type from [MLIR][MEMREF] Limit cast folding for memref.collapse_shape to [WIP][MLIR][MEMREF] Limit cast folding for memref.collapse_shape.
Jul 25 2021, 7:50 PM · Restricted Project

Jul 23 2021

cathyzhyi retitled D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type from Limit cast folding for memref.collapse_shape to [MLIR][MEMREF] Limit cast folding for memref.collapse_shape.
Jul 23 2021, 3:49 PM · Restricted Project
cathyzhyi abandoned D106719: Limit cast folding for memref.collapse_shape.
Jul 23 2021, 3:48 PM · Restricted Project
cathyzhyi requested review of D106719: Limit cast folding for memref.collapse_shape.
Jul 23 2021, 3:47 PM · Restricted Project
cathyzhyi abandoned D106698: Adding expandTanhPattern to StdExpandOpsPass.
Jul 23 2021, 1:26 PM · Restricted Project
cathyzhyi added a comment to D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.

@mravishankar Thanks a lot for reviewing! I don't have commit permission. Could you please also help me to land the change?

Jul 23 2021, 1:02 PM · Restricted Project
cathyzhyi requested review of D106698: Adding expandTanhPattern to StdExpandOpsPass.
Jul 23 2021, 12:18 PM · Restricted Project
cathyzhyi added a comment to D106658: [mlir][linalg] Add pooling_nchw_max, conv_2d_nchw as yaml ops..

Will do that!

Btw, the commit message should usually contain some tags, e.g. "[mlir][linalg] Add pooling_nchw_max, conv_2d_nchw as yaml ops." to clarify which parts of llvm it is touching.

Will do it before landing.

Jul 23 2021, 9:16 AM · Restricted Project
cathyzhyi added a comment to D106658: [mlir][linalg] Add pooling_nchw_max, conv_2d_nchw as yaml ops..

@gysit Hey Tobias, thanks a lot for reviewing! Could you please also help me land the change? I don't have commit access yet.

Jul 23 2021, 8:54 AM · Restricted Project
cathyzhyi added a reviewer for D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type: mravishankar.
Jul 23 2021, 8:16 AM · Restricted Project
cathyzhyi updated the diff for D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.

update description

Jul 23 2021, 8:15 AM · Restricted Project
cathyzhyi updated the summary of D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.
Jul 23 2021, 8:10 AM · Restricted Project
cathyzhyi requested review of D106670: [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type.
Jul 23 2021, 8:06 AM · Restricted Project
cathyzhyi updated the diff for D106658: [mlir][linalg] Add pooling_nchw_max, conv_2d_nchw as yaml ops..

clean up format

Jul 23 2021, 6:49 AM · Restricted Project
cathyzhyi requested review of D106658: [mlir][linalg] Add pooling_nchw_max, conv_2d_nchw as yaml ops..
Jul 23 2021, 5:55 AM · Restricted Project

Jul 16 2021

cathyzhyi added a reviewer for D106180: Dyanamic shape support for memref reassociation reshape ops: mravishankar.
Jul 16 2021, 12:57 PM · Restricted Project
cathyzhyi updated the diff for D106180: Dyanamic shape support for memref reassociation reshape ops.

minor changes

Jul 16 2021, 12:34 PM · Restricted Project
cathyzhyi requested review of D106180: Dyanamic shape support for memref reassociation reshape ops.
Jul 16 2021, 12:27 PM · Restricted Project

Jul 13 2021

cathyzhyi accepted D105852: [mlir][Tensor] Implement `reifyReturnTypeShapesPerResultDim` for `tensor.insert_slice`..

LGTM

Jul 13 2021, 9:28 AM · Restricted Project

Jul 8 2021

cathyzhyi updated the diff for D105642: Mark TensorDialect legal and PadTensor op illegal.

remove the integration test and add IR unit test instead

Jul 8 2021, 1:39 PM · Restricted Project
cathyzhyi updated the summary of D105642: Mark TensorDialect legal and PadTensor op illegal.
Jul 8 2021, 12:14 PM · Restricted Project
cathyzhyi updated the diff for D105642: Mark TensorDialect legal and PadTensor op illegal.

Add an integration test for dynamic shape case when testing padtensor
lowering. Add comments to be more descriptive.

Jul 8 2021, 12:12 PM · Restricted Project
cathyzhyi added a comment to D105642: Mark TensorDialect legal and PadTensor op illegal.

Do you know why previous tests didn't need this? Should we add a new test?

Jul 8 2021, 11:13 AM · Restricted Project
cathyzhyi requested review of D105642: Mark TensorDialect legal and PadTensor op illegal.
Jul 8 2021, 10:39 AM · Restricted Project

Jul 2 2021

cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

delete redundant comments as suggested

Jul 2 2021, 7:38 PM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

move the new pattern's source code next to PadTensorOpTransformationPattern for
consistency

Jul 2 2021, 1:39 PM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

add the pattern into linalg bufferization pass

Jul 2 2021, 12:26 PM · Restricted Project
cathyzhyi added a comment to D105293: Refactor GenericPadTensorOpVectorizationPattern.

@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.

Jul 2 2021, 11:45 AM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

update comments that's no longer relevant.

Jul 2 2021, 11:28 AM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

refactor and reuse existing code as suggested.

Jul 2 2021, 11:18 AM · Restricted Project

Jul 1 2021

cathyzhyi added a comment to D105293: Refactor GenericPadTensorOpVectorizationPattern.

@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>
}
Jul 1 2021, 7:18 PM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

use rewrite pattern instead

Jul 1 2021, 7:13 PM · Restricted Project
cathyzhyi added a comment to D105293: Refactor GenericPadTensorOpVectorizationPattern.

Note that I asked for a similar rewrite in https://reviews.llvm.org/D102804 but it was eventually not done.
I am wondering whether the pattern you add here should be more generally be the rewrite on tensors I mentioned and then just let existing bufferization kick in?

That makes sense to me!

Jul 1 2021, 2:17 PM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

address comments

Jul 1 2021, 2:00 PM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

remove redundant type check

Jul 1 2021, 9:53 AM · Restricted Project
cathyzhyi updated the diff for D105293: Refactor GenericPadTensorOpVectorizationPattern.

delete redundant comments

Jul 1 2021, 9:39 AM · Restricted Project
cathyzhyi requested review of D105293: Refactor GenericPadTensorOpVectorizationPattern.
Jul 1 2021, 9:35 AM · Restricted Project

Mar 22 2021

cathyzhyi abandoned D99047: Fix toy language example.

didn't see https://github.com/llvm/llvm-project/commit/113baa2b9fd3c8db30d33ecc3f068af48dcce52d. closing this one.

Mar 22 2021, 8:54 AM · Restricted Project

Mar 21 2021

cathyzhyi requested review of D99047: Fix toy language example.
Mar 21 2021, 5:58 PM · Restricted Project