rebase
Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Aug 14 2023
Jul 25 2023
rebase, and apply functional-type widely as suggested.
Jul 21 2023
rebase and reslove conflict
Is there any remaining issues? could you land this for me?
Jul 18 2023
Thanks for the explanation. Your statement is clear, and I don't have further question.
Jul 17 2023
Hi, this is a great useful feature. I just have a few question on it.
Jul 13 2023
Yes. This demand is reasonable. We loosen the trait to accept those use cases.
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 11 2023
missing < in the expected output string of the test.
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 10 2023
@mgehre-amd, oh, you're right. I'll send a PR to fix this soon.
May 25 2023
put tosa.mul into element-wise binary group.
May 24 2023
Fix the typo of Binary to Unary for clamp, sigmoid and tanh.
May 17 2023
May 15 2023
In D150472#4341193, @mgehre-amd wrote: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.
Declaring clamp, sigmoid and tanh as Tosa_ElemWiseUnaryOp.
May 12 2023
Mar 30 2023
Define the new accumulator type as TypeAttr rather than EnumAttr.
Mar 22 2023
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.
Rebase to include bazel fix for transform dialect (not relevant to this patch)
Mar 21 2023
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?
Rebase to include OUTSIDE fix for bazel build error.
Mar 20 2023
Read the acc type attr in TosaToLinalg.
As suggested, minimize the change by adding the necessary checkers only.
As suggested, minimize the change by adding the necessary checkers only.
Rebase onto top-of-tree to include the fix that isn't relevant to this patch.
Rebase onto top-of-tree to include the fix that isn't relevant to this patch.
Mar 18 2023
Populate and call checkers (function) directly to avoid virtual function lookup and class
overhead.
Mar 17 2023
Mar 15 2023
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 7 2023
Define these constant operand checking functions as function template. That might make
code cleaner as it is likely more operations will be added.
Mar 6 2023
Feb 11 2023
Thanks. Feedbacks from you guys are useful and constructive. Let me abandon this PR and go along the suggested way.
Feb 8 2023
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 6 2023
As suggested, mutate the referenced inputs passed in to avoid doing the extra reassigning and stateful variabled in the lowering.
Feb 4 2023
update the patch title
Jan 14 2023
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 6 2023
overload reshapeLowerToHigher to support 3 inputs so that the broadcasting happens all at once.
rebase.
Dec 12 2022
- replace failure with notifyMatchFailure
- address review comment
- add more mlir tests
- add comment in code
Dec 1 2022
Nov 14 2022
Remove this pass from the SCF pass as these dialects is independent of each other.
Nov 11 2022
fix clang format error
fix: include header in the wrong place.
Nov 9 2022
fix compilation error.
Nov 8 2022
Thanks. Good to know the enum can be defined in Tblgen. Also change to use walk function as suggested.
Define the enum in tablegen for the pass, and use a walk on the operation instead.
Nov 2 2022
Oct 6 2022
Instead of comparing with -1, change to use ShapedType::isDynamic
Rebase
Sep 29 2022
Add check whether input tensor is dynamic shape.
Aug 31 2022
Aug 17 2022
Rebase and resolve conflicts