From 133a265c7062026516c00bd4c82e9d4bafaa4d13 Mon Sep 17 00:00:00 2001 From: Jacob Bohlin Date: Mon, 12 May 2025 16:41:31 +0100 Subject: [PATCH] MLBEDSW-10756 Fix issue where HLCParameters were copied incorrectly Change-Id: I4a40cf56a37f10e95b52f93d2b60851bc38f5aaf Signed-off-by: Jacob Bohlin --- ethosu/regor/compiler/high_level_command_stream.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethosu/regor/compiler/high_level_command_stream.hpp b/ethosu/regor/compiler/high_level_command_stream.hpp index 773899a8..ebdf3095 100644 --- a/ethosu/regor/compiler/high_level_command_stream.hpp +++ b/ethosu/regor/compiler/high_level_command_stream.hpp @@ -168,7 +168,8 @@ struct HLCSubOperation ifm = other.ifm; ofm = other.ofm; // Compilers disagree on whether the union is copyable. - if ( other.type == OpType::LUT ) parameters.lut = other.parameters.lut; + if ( other.type == OpType::LUT || other.type == OpType::Sigmoid || other.type == OpType::Tanh ) + parameters.lut = other.parameters.lut; else parameters.resize = other.parameters.resize; srcId = other.srcId; } -- GitLab