[all-commits] [llvm/llvm-project] 09bd5a: [mlir][tosa] Fix `tosa.reshape` folder for quantiz...

Rob Suderman via All-commits all-commits at lists.llvm.org
Mon Apr 24 18:14:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09bd5ae49ea84c734cec35ec8555b16edb13c7b4
      https://github.com/llvm/llvm-project/commit/09bd5ae49ea84c734cec35ec8555b16edb13c7b4
  Author: Robert Suderman <suderman at google.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
    M mlir/test/Dialect/Tosa/canonicalize.mlir

  Log Message:
  -----------
  [mlir][tosa] Fix `tosa.reshape` folder for quantized constants

It is possible for `tosa.const` to have a quantized return type.
In these cases we need to retain the expected result type to avoid
potential type mismatches further in the model.

Reviewed By: cota

Differential Revision: https://reviews.llvm.org/D149109




More information about the All-commits mailing list