From 6d1c641745653b06e00b0fc79373baf2a30e40bc Mon Sep 17 00:00:00 2001 From: Alexander Bengtsson Date: Wed, 23 Apr 2025 11:23:22 +0200 Subject: [PATCH] MLBEDSW-10737: Decompose Quantize as elementwise - Add OpType::Quantize to DecomposeAsElementwise - Remove Clamp and LUT as they are covered by IsActivation Change-Id: Iba834c037a38f9c00a7e5414cd991dec92712fa2 Signed-off-by: Alexander Bengtsson --- ethosu/regor/compiler/op_type.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethosu/regor/compiler/op_type.hpp b/ethosu/regor/compiler/op_type.hpp index 7b4a9240..15d2f876 100644 --- a/ethosu/regor/compiler/op_type.hpp +++ b/ethosu/regor/compiler/op_type.hpp @@ -236,8 +236,8 @@ constexpr inline bool IsElementwise(OpType opType) constexpr inline bool DecomposeAsElementwise(OpType opType) { - return IsElementwise(opType) || IsActivation(opType) || opType == OpType::Rescale || opType == OpType::LUT || - opType == OpType::Table || opType == OpType::Clamp || opType == OpType::Cast; + return IsElementwise(opType) || IsActivation(opType) || opType == OpType::Rescale || opType == OpType::Table || + opType == OpType::Cast || opType == OpType::Quantize; } constexpr inline bool IsDepthwise(OpType opType) -- GitLab