[all-commits] [llvm/llvm-project] eed17d: [mlir][tosa] Fix lowering of tosa.matmul with dyna...

Spenser Bauman via All-commits all-commits at lists.llvm.org
Wed Nov 22 04:41:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eed17dcf76b5aea30348a515e9fddd0789fec054
      https://github.com/llvm/llvm-project/commit/eed17dcf76b5aea30348a515e9fddd0789fec054
  Author: Spenser Bauman <sbauman at mathworks.com>
  Date:   2023-11-22 (Wed, 22 Nov 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.matmul with dynamic outputs (#72724)

The existing lowering of tosa.matmul will construct illegal tensor.empty
operations when the output type is more dynamic than the input types.

%0 = tosa.matmul %arg0, %arg1 : (tensor<1x1x8xf32>, tensor<1x8x1xf32>)
-> tensor<?x1x1xf32>

When constructing the tensor.empty operation, consult the output type
rather than the input types to decide whether a dimension is dynamic.




More information about the All-commits mailing list