For a 1x1 weight and stride of 1, the input/weight can be reshaped and multiplied elementwise then reshaped back
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D115207
[mlir][tosa] Add tosa.depthwise_conv2d as tosa.mul canonicalization ClosedPublic Authored by not-jenni on Dec 6 2021, 4:55 PM.
Details Summary For a 1x1 weight and stride of 1, the input/weight can be reshaped and multiplied elementwise then reshaped back
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 6 2021, 4:58 PM Closed by commit rG5911a29aa920: [mlir][tosa] Add tosa.depthwise_conv2d as tosa.mul canonicalization (authored by not-jenni, committed by rsuderman). · Explain WhyDec 6 2021, 5:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 392243 mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/test/Dialect/Tosa/canonicalize.mlir
|