Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline

Feed Advanced Search

Aug 14 2023

tatwaichong updated the diff for D155231: [mlir][tosa] operation printing syntax prettification.

rebase

Aug 14 2023, 2:39 PM · Restricted Project, Restricted Project

Jul 25 2023

tatwaichong updated the diff for D155231: [mlir][tosa] operation printing syntax prettification.

rebase, and apply functional-type widely as suggested.

Jul 25 2023, 5:12 PM · Restricted Project, Restricted Project

Jul 21 2023

tatwaichong updated the diff for D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.

rebase and reslove conflict

Jul 21 2023, 4:27 PM · Restricted Project, Restricted Project
tatwaichong added a comment to D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.

Is there any remaining issues? could you land this for me?

Jul 21 2023, 3:27 PM · Restricted Project, Restricted Project

Jul 18 2023

tatwaichong added a comment to D153291: TOSA-to-Linalg lowering for element-wise ops.

Thanks for the explanation. Your statement is clear, and I don't have further question.

Jul 18 2023, 5:25 PM · Restricted Project, Restricted Project

Jul 17 2023

tatwaichong added a comment to D153291: TOSA-to-Linalg lowering for element-wise ops.

Hi, this is a great useful feature. I just have a few question on it.

Jul 17 2023, 3:09 PM · Restricted Project, Restricted Project

Jul 13 2023

tatwaichong added a reviewer for D155231: [mlir][tosa] operation printing syntax prettification: sabauma.
Jul 13 2023, 2:38 PM · Restricted Project, Restricted Project
tatwaichong added reviewers for D155231: [mlir][tosa] operation printing syntax prettification: rsuderman, mgehre-amd.
Jul 13 2023, 2:00 PM · Restricted Project, Restricted Project
tatwaichong requested review of D155231: [mlir][tosa] operation printing syntax prettification.
Jul 13 2023, 1:58 PM · Restricted Project, Restricted Project
tatwaichong added a comment to D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.

Yes. This demand is reasonable. We loosen the trait to accept those use cases.

Jul 13 2023, 1:36 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.

update the trait in a relexed way to allow the result type can be other size but not i32 as long as this is a valid size.

Jul 13 2023, 1:33 PM · Restricted Project, Restricted Project

Jul 11 2023

tatwaichong added inline comments to D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.
Jul 11 2023, 11:34 AM · Restricted Project, Restricted Project
tatwaichong updated the diff for D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.

missing < in the expected output string of the test.

Jul 11 2023, 11:29 AM · Restricted Project, Restricted Project
tatwaichong added a reviewer for D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul: mgehre-amd.
Jul 11 2023, 10:47 AM · Restricted Project, Restricted Project
tatwaichong added inline comments to D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.
Jul 11 2023, 10:44 AM · Restricted Project, Restricted Project
tatwaichong added inline comments to D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.
Jul 11 2023, 10:42 AM · Restricted Project, Restricted Project
tatwaichong added a comment to D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.

This is a fix to response the mistake introduced in D150472.
Quote ""tosa.mul"(%0, %1) {shift = 0 : i32} : (tensor<4xi8>, tensor<4xi8>) -> tensor<4xi32> is marked as illegal because result and operand types don't match, even though i8xi8 = i32 is according to the spec".

Jul 11 2023, 10:39 AM · Restricted Project, Restricted Project
tatwaichong requested review of D154988: [mlir][tosa][fix] Add proper type checking trait for tosa mul.
Jul 11 2023, 10:34 AM · Restricted Project, Restricted Project

Jul 10 2023

tatwaichong added a comment to D150472: [mlir][tosa] Add type checking traits to the appropriate ops.

@mgehre-amd, oh, you're right. I'll send a PR to fix this soon.

Jul 10 2023, 10:08 AM · Restricted Project, Restricted Project

May 25 2023

tatwaichong updated the diff for D150472: [mlir][tosa] Add type checking traits to the appropriate ops.

put tosa.mul into element-wise binary group.

May 25 2023, 9:59 AM · Restricted Project, Restricted Project

May 24 2023

tatwaichong updated the diff for D150472: [mlir][tosa] Add type checking traits to the appropriate ops.

Fix the typo of Binary to Unary for clamp, sigmoid and tanh.

May 24 2023, 5:36 PM · Restricted Project, Restricted Project

May 17 2023

tatwaichong added a reviewer for D150283: [TOSA] Refactor TosaMakeBroadcastable pass: rsuderman.
May 17 2023, 6:21 PM · Restricted Project, Restricted Project

May 15 2023

tatwaichong added a comment to D150472: [mlir][tosa] Add type checking traits to the appropriate ops.

Thanks for fixing this!

I think clamp, sigmoid and tanh are also Tosa_ElemWiseUnaryOp.
Other ops like identity, reshape, concat, pad, reverse, slice, tile and transpose should also have same element types on input and output.

May 15 2023, 3:09 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D150472: [mlir][tosa] Add type checking traits to the appropriate ops.

Declaring clamp, sigmoid and tanh as Tosa_ElemWiseUnaryOp.

May 15 2023, 2:53 PM · Restricted Project, Restricted Project

May 12 2023

tatwaichong added reviewers for D150472: [mlir][tosa] Add type checking traits to the appropriate ops: rsuderman, jpienaar.
May 12 2023, 11:56 AM · Restricted Project, Restricted Project
tatwaichong requested review of D150472: [mlir][tosa] Add type checking traits to the appropriate ops.
May 12 2023, 11:54 AM · Restricted Project, Restricted Project

Mar 30 2023

tatwaichong added inline comments to D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.
Mar 30 2023, 10:53 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Define the new accumulator type as TypeAttr rather than EnumAttr.

Mar 30 2023, 10:50 PM · Restricted Project, Restricted Project

Mar 22 2023

tatwaichong updated the diff for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Look like the recent build of mlir repo isn't stable.
Have to be careful to pick a commit to rebase.
Now rebase this PR to a commit that can pass bazel build test locally.

Mar 22 2023, 5:10 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Rebase to include bazel fix for transform dialect (not relevant to this patch)

Mar 22 2023, 9:58 AM · Restricted Project, Restricted Project

Mar 21 2023

tatwaichong added a comment to D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Good spot. Thanks for the reminder. I missed TosaToLinalg part. Reading from the acctype attr is complemented in newer patch. Do I still miss something necessary else?

Mar 21 2023, 9:30 AM · Restricted Project, Restricted Project
tatwaichong updated the diff for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Rebase to include OUTSIDE fix for bazel build error.

Mar 21 2023, 9:25 AM · Restricted Project, Restricted Project

Mar 20 2023

tatwaichong updated the diff for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Read the acc type attr in TosaToLinalg.

Mar 20 2023, 5:17 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D145412: [mlir][tosa] Add check if the operand of the operations is constant..

As suggested, minimize the change by adding the necessary checkers only.

Mar 20 2023, 3:17 PM · Restricted Project, Restricted Project
tatwaichong added a comment to D145412: [mlir][tosa] Add check if the operand of the operations is constant..

As suggested, minimize the change by adding the necessary checkers only.

Mar 20 2023, 3:17 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.

Rebase onto top-of-tree to include the fix that isn't relevant to this patch.

Mar 20 2023, 1:36 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D145412: [mlir][tosa] Add check if the operand of the operations is constant..

Rebase onto top-of-tree to include the fix that isn't relevant to this patch.

Mar 20 2023, 1:34 PM · Restricted Project, Restricted Project

Mar 18 2023

tatwaichong updated the diff for D145412: [mlir][tosa] Add check if the operand of the operations is constant..

Populate and call checkers (function) directly to avoid virtual function lookup and class
overhead.

Mar 18 2023, 12:49 AM · Restricted Project, Restricted Project

Mar 17 2023

tatwaichong updated the summary of D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.
Mar 17 2023, 11:17 AM · Restricted Project, Restricted Project
tatwaichong updated the summary of D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.
Mar 17 2023, 11:13 AM · Restricted Project, Restricted Project
tatwaichong added a reviewer for D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect: rsuderman.
Mar 17 2023, 11:13 AM · Restricted Project, Restricted Project
tatwaichong requested review of D146317: [mlir][tosa] Add accumulator type attribute to TOSA dialect.
Mar 17 2023, 11:13 AM · Restricted Project, Restricted Project

Mar 15 2023

tatwaichong added inline comments to D145412: [mlir][tosa] Add check if the operand of the operations is constant..
Mar 15 2023, 5:46 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D145412: [mlir][tosa] Add check if the operand of the operations is constant..

Instead of checking a series of if/else operations, adopt operation type look-up method
by implementing polymorphism. I think that may easier to extend to involve more operations
or other checking patterns. And address other review comments.

Mar 15 2023, 5:40 PM · Restricted Project, Restricted Project

Mar 7 2023

tatwaichong updated the diff for D145412: [mlir][tosa] Add check if the operand of the operations is constant..

Define these constant operand checking functions as function template. That might make
code cleaner as it is likely more operations will be added.

Mar 7 2023, 5:55 PM · Restricted Project, Restricted Project

Mar 6 2023

tatwaichong added a reviewer for D145412: [mlir][tosa] Add check if the operand of the operations is constant.: rsuderman.
Mar 6 2023, 11:44 AM · Restricted Project, Restricted Project
tatwaichong requested review of D145412: [mlir][tosa] Add check if the operand of the operations is constant..
Mar 6 2023, 11:41 AM · Restricted Project, Restricted Project

Feb 11 2023

tatwaichong abandoned D143312: [mlir][tosa] align the type of padding and pad_const with the spec.
Feb 11 2023, 5:43 AM · Restricted Project, Restricted Project
tatwaichong added a comment to D143312: [mlir][tosa] align the type of padding and pad_const with the spec.

Thanks. Feedbacks from you guys are useful and constructive. Let me abandon this PR and go along the suggested way.

Feb 11 2023, 5:42 AM · Restricted Project, Restricted Project

Feb 8 2023

tatwaichong added a comment to D143312: [mlir][tosa] align the type of padding and pad_const with the spec.

Sorry for confusing you. I've not noticed there is a mismatch of attribute meaning between TOSA and MLIR. Could you explain a bit about the difference or why those arguments are better to be MLIR operands rather than MLIR attributes? I thought both attribute types are used to specify constant data on operations.
Alternative way without the pad definition changing, we're trying to add a section in a pass in MLIR to verify if the pad operands are constant in compile time. Any suggestions are welcome.

Feb 8 2023, 10:56 AM · Restricted Project, Restricted Project

Feb 6 2023

tatwaichong updated the diff for D139156: [mlir][tosa] make Select operator broadcastable in the pass.

As suggested, mutate the referenced inputs passed in to avoid doing the extra reassigning and stateful variabled in the lowering.

Feb 6 2023, 2:27 PM · Restricted Project, Restricted Project

Feb 4 2023

tatwaichong updated the summary of D143312: [mlir][tosa] align the type of padding and pad_const with the spec.
Feb 4 2023, 2:13 AM · Restricted Project, Restricted Project
tatwaichong retitled D143312: [mlir][tosa] align the type of padding and pad_const with the spec from Summary: padding and pad_const are operands in the current implementation, but in TOSA spec they are attributes. to [mlir][tosa] align the type of padding and pad_const with the spec.
Feb 4 2023, 2:08 AM · Restricted Project, Restricted Project
tatwaichong updated the diff for D143312: [mlir][tosa] align the type of padding and pad_const with the spec.

update the patch title

Feb 4 2023, 2:07 AM · Restricted Project, Restricted Project
tatwaichong requested review of D143312: [mlir][tosa] align the type of padding and pad_const with the spec.
Feb 4 2023, 2:03 AM · Restricted Project, Restricted Project

Jan 14 2023

tatwaichong updated the diff for D139156: [mlir][tosa] make Select operator broadcastable in the pass.

roll back to use the existing pair-wise broadcasting function. Apply each broadcasting to 3 different pairs of inputs. By chaining them this way as a compound the broadcasting happens all at once.
update mlir tests.

Jan 14 2023, 1:25 AM · Restricted Project, Restricted Project

Jan 6 2023

tatwaichong added inline comments to D139156: [mlir][tosa] make Select operator broadcastable in the pass.
Jan 6 2023, 2:47 PM · Restricted Project, Restricted Project
tatwaichong added inline comments to D139156: [mlir][tosa] make Select operator broadcastable in the pass.
Jan 6 2023, 2:14 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D139156: [mlir][tosa] make Select operator broadcastable in the pass.

overload reshapeLowerToHigher to support 3 inputs so that the broadcasting happens all at once.
rebase.

Jan 6 2023, 2:07 PM · Restricted Project, Restricted Project

Dec 12 2022

tatwaichong added inline comments to D139156: [mlir][tosa] make Select operator broadcastable in the pass.
Dec 12 2022, 1:48 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D139156: [mlir][tosa] make Select operator broadcastable in the pass.
  • replace failure with notifyMatchFailure
  • address review comment
  • add more mlir tests
  • add comment in code
Dec 12 2022, 1:30 PM · Restricted Project, Restricted Project

Dec 1 2022

tatwaichong added a reviewer for D139156: [mlir][tosa] make Select operator broadcastable in the pass: eric-k256.
Dec 1 2022, 4:13 PM · Restricted Project, Restricted Project
tatwaichong updated the summary of D139156: [mlir][tosa] make Select operator broadcastable in the pass.
Dec 1 2022, 4:12 PM · Restricted Project, Restricted Project
tatwaichong requested review of D139156: [mlir][tosa] make Select operator broadcastable in the pass.
Dec 1 2022, 4:08 PM · Restricted Project, Restricted Project

Nov 14 2022

tatwaichong updated the diff for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.

Remove this pass from the SCF pass as these dialects is independent of each other.

Nov 14 2022, 3:42 PM · Restricted Project, Restricted Project
tatwaichong added inline comments to D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.
Nov 14 2022, 3:10 PM · Restricted Project, Restricted Project

Nov 11 2022

tatwaichong updated the diff for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.

fix clang format error

Nov 11 2022, 1:55 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.

fix: include header in the wrong place.

Nov 11 2022, 12:55 AM · Restricted Project, Restricted Project

Nov 9 2022

tatwaichong updated the diff for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.

fix compilation error.

Nov 9 2022, 12:02 PM · Restricted Project, Restricted Project

Nov 8 2022

tatwaichong added a comment to D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.

Thanks. Good to know the enum can be defined in Tblgen. Also change to use walk function as suggested.

Nov 8 2022, 10:55 PM · Restricted Project, Restricted Project
tatwaichong updated the diff for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.

Define the enum in tablegen for the pass, and use a walk on the operation instead.

Nov 8 2022, 10:53 PM · Restricted Project, Restricted Project

Nov 2 2022

tatwaichong added a reviewer for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect: jpienaar.
Nov 2 2022, 2:53 PM · Restricted Project, Restricted Project
tatwaichong added a reviewer for D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect: rsuderman.
Nov 2 2022, 2:49 PM · Restricted Project, Restricted Project
tatwaichong requested review of D137279: [mlir][tosa] Create a profile validation pass for TOSA dialect.
Nov 2 2022, 11:46 AM · Restricted Project, Restricted Project

Oct 6 2022

tatwaichong updated the diff for D133062: [tosa] Add legalization for conv3d.

Instead of comparing with -1, change to use ShapedType::isDynamic

Oct 6 2022, 11:58 AM · Restricted Project, Restricted Project
tatwaichong added a reviewer for D133062: [tosa] Add legalization for conv3d: rsuderman.
Oct 6 2022, 11:19 AM · Restricted Project, Restricted Project
tatwaichong updated the summary of D133062: [tosa] Add legalization for conv3d.
Oct 6 2022, 11:17 AM · Restricted Project, Restricted Project
tatwaichong updated the diff for D133062: [tosa] Add legalization for conv3d.

Rebase

Oct 6 2022, 11:14 AM · Restricted Project, Restricted Project

Sep 29 2022

tatwaichong updated the diff for D131629: [mlir][tosa] Update TOSA resize to match specification.

Add check whether input tensor is dynamic shape.

Sep 29 2022, 11:49 PM · Restricted Project, Restricted Project

Aug 31 2022

tatwaichong requested review of D133062: [tosa] Add legalization for conv3d.
Aug 31 2022, 3:32 PM · Restricted Project, Restricted Project

Aug 17 2022

tatwaichong updated the diff for D131629: [mlir][tosa] Update TOSA resize to match specification.

Rebase and resolve conflicts

Aug 17 2022, 12:50 AM · Restricted Project, Restricted Project

Aug 10 2022

tatwaichong requested review of D131629: [mlir][tosa] Update TOSA resize to match specification.
Aug 10 2022, 3:46 PM · Restricted Project, Restricted Project