[Mlir-commits] [mlir] [mlir][tosa] Add several level checks (PR #128074)
TatWai Chong
llvmlistbot at llvm.org
Wed Feb 26 11:24:16 PST 2025
================
@@ -695,6 +773,9 @@ LogicalResult TosaValidation::applyErrorIfCheck(Operation *op) {
}
bool TosaValidation::isValidElementType(Type type) {
+ if (auto quantType = llvm::dyn_cast<mlir::quant::QuantizedType>(type))
----------------
tatwaichong wrote:
Sorry, I thought it was but it wasn't. The quantized types are stripped by framework, e.g. Tensorflow, hence it is not guarantee quantized types have already been stripped at this point. We already have some lit tests expecting operating quantized types, e.g. ops.mlir.
https://github.com/llvm/llvm-project/pull/128074
More information about the Mlir-commits
mailing list