[all-commits] [llvm/llvm-project] 4a899a: [TOSA] Add QuantizationDialect to TOSA's dependent...

Tai Ly via All-commits all-commits at lists.llvm.org
Mon May 15 15:14:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a899a35182be83ba46ae7906f0ce80ae800ef35
      https://github.com/llvm/llvm-project/commit/4a899a35182be83ba46ae7906f0ce80ae800ef35
  Author: Tai Ly <tai.ly at arm.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td

  Log Message:
  -----------
  [TOSA] Add QuantizationDialect to TOSA's dependentDialects

This adds QuantizationDialect to the dependent dialects of TOSA
This fixes the intermittent bug when creating uniform quantized type when none was parsed in.

LLVM ERROR: can't create type 'mlir::quant::UniformQuantizedType' because storage uniquer isn't initialized: the dialect was likely not loaded, or the type wasn't added with addTypes<...>() in the Dialect::initialize() method.

This happens, for example, in convert-tfl-uint8 pass when trying to create uniform quantized type i8 with zero-point=-128 to convert from ui8 type.

Signed-off-by: Tai Ly <tai.ly at arm.com>
Change-Id: I204248a45fd728d0cec8dc20214cb0b74de81e7b

Reviewed By: eric-k256

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




More information about the All-commits mailing list