[all-commits] [llvm/llvm-project] f58fb8: [mlir][tosa] Fix lowering of tosa.conv2d (#73240)
Spenser Bauman via All-commits
all-commits at lists.llvm.org
Fri Dec 1 07:33:29 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f58fb8c209a5179f8f2e02e2a0816c9b1f1edb1b
https://github.com/llvm/llvm-project/commit/f58fb8c209a5179f8f2e02e2a0816c9b1f1edb1b
Author: Spenser Bauman <sbauman at mathworks.com>
Date: 2023-12-01 (Fri, 01 Dec 2023)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-named.mlir
Log Message:
-----------
[mlir][tosa] Fix lowering of tosa.conv2d (#73240)
The lowering of tosa.conv2d produces an illegal tensor.empty operation
where the number of inputs do not match the number of dynamic dimensions
in the output type.
The fix is to base the generation of tensor.dim operations off the
result type of the conv2d operation, rather than the input type. The
problem and fix are very similar to this fix
https://github.com/llvm/llvm-project/pull/72724
but for convolution.
More information about the All-commits
mailing list