diff --git a/ethosu/regor/compiler/high_level_command_stream.hpp b/ethosu/regor/compiler/high_level_command_stream.hpp index 773899a8e2ec920435cedbaffe8642e6aad40a0f..ebdf3095c610f90a41d049cd7dc37eaea1941ace 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; }