Add pad_const field to tosa.pad.
Add builders to enable optional construction of pad_const in pad op.
Update documentation of tosa.clamp to match spec wording.
Signed-off-by: Suraj Sudhir <suraj.sudhir@arm.com>
Paths
| Differential D113322
[mlir][tosa] Spec v0.23 updates ClosedPublic Authored by sjarus on Nov 5 2021, 2:37 PM.
Details
Summary Add pad_const field to tosa.pad. Signed-off-by: Suraj Sudhir <suraj.sudhir@arm.com>
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 23 others. · View Herald TranscriptNov 5 2021, 2:37 PM Comment Actions This change keeps the new pad_const field an optional construct and adds a builder to handle it. Existing frontend legalizations do not break. They can be updated later and the parameter optionality can then be removed without breaking anything. Comment Actions Okay, I will review and integrate this on Monday to guarantee there are not any cascading failures. Looks really great though. I was just starting work on something where this is very useful. Comment Actions
Sounds good! We ran bazel test in the TF tree and all the TOSA stuff was ok, but there are other pieces there outside of our control. This revision is now accepted and ready to land.Nov 8 2021, 10:04 AM Closed by commit rG82568021ddf0: [mlir][tosa] Spec v0.23 updates (authored by sjarus, committed by rsuderman). · Explain WhyNov 8 2021, 10:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 385553 mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/test/Dialect/Tosa/ops.mlir
|