[mlir][tosa] Fix tosa.transpose_conv2d decompositions for new version
authorRob Suderman <suderman@google.com>
Tue, 3 Jan 2023 19:21:25 +0000 (11:21 -0800)
committerRob Suderman <suderman@google.com>
Tue, 3 Jan 2023 19:36:13 +0000 (11:36 -0800)
commitfcbf3fafdb542d99e3e5971bff45daaffa7f2cc0
tree7243407a8fda8f0fdec871516c3d048a226b9727
parent3efb0274b7d90d675594a7a2735bdfed0a994fde
[mlir][tosa] Fix tosa.transpose_conv2d decompositions for new version

The decomposition was no longer correct for transpose_conv2d to conv2d
after the updated TOSA specification. Specifically the behavior for
padding was changed to refer to padding the tranpsose_conv2d instead
of referencing the conv applied to the inverse transform.

Test was validated using the TOSA conformance tests.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D140503
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
mlir/test/Dialect/Tosa/tosa-decompose-transpose-conv.mlir