[Mlir-commits] [mlir] [mlir][TOSA] Fix interpretation of --tosa-validate='profile=undefined' (PR #65738)

Benjamin Maxwell llvmlistbot at llvm.org
Fri Sep 8 04:06:37 PDT 2023


https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/65738:

Due to a copy-paste error in 32b7c1ff this was incorrectly mapped to `TosaProfileEnum::MainTraining` rather than `TosaProfileEnum::Undefined`.

>From fc5cd2025fad97d4747429001bfa8728dccc4bf4 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Fri, 8 Sep 2023 10:56:11 +0000
Subject: [PATCH] [mlir][TOSA] Fix interpretation of
 --tosa-validate='profile=undefined'

Due to a copy-paste error in 32b7c1ff this was incorrectly mapped to
TosaProfileEnum::MainTraining rather than TosaProfileEnum::Undefined.
---
 mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td b/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
index bc30b88ea2af6a9..18402b3e70647a9 100644
--- a/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
+++ b/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
@@ -101,7 +101,7 @@ def TosaValidation : Pass<"tosa-validate", "func::FuncOp"> {
                 "Use Main Inference profile."),
                clEnumValN(mlir::tosa::TosaProfileEnum::MainTraining, "mt",
                 "Use Main Training profile."),
-               clEnumValN(mlir::tosa::TosaProfileEnum::MainTraining, "undefined",
+               clEnumValN(mlir::tosa::TosaProfileEnum::Undefined, "undefined",
                 "Do not define a profile.")
               )}]>,
       Option<"StrictOperationSpecAlignment", "strict-op-spec-alignment", "bool",



More information about the Mlir-commits mailing list