param.activation = static_cast<FuseCode>(_ctx.at(activation_index).asScala<int32_t>());
- auto stage = [param](const IAllocationContext &ctx, IExecutionBuilder &builder) {
+ auto stage = [param, lhs_shape, rhs_shape](const IAllocationContext &ctx,
+ IExecutionBuilder &builder) {
auto ofm_alloc = ctx.at(::internal::tflite::operand::Index{param.ofm_index});
auto lhs_alloc = ctx.at(::internal::tflite::operand::Index{param.lhs_index});
auto rhs_alloc = ctx.at(::internal::tflite::operand::Index{param.rhs_index});
else
{
// NOTE SimpleAritemeticAdditionLayer does not support broadcasting
- assert(lhs_shape.depth() == rhs_shape.depth());
- assert(lhs_shape.height() == rhs_shape.height());
- assert(lhs_shape.width() == rhs_shape.width());
+ assert(lhs_shape.C == rhs_shape.C);
+ assert(lhs_shape.H == rhs_shape.H);
+ assert(lhs_shape.W == rhs_shape.W);
auto l = make_layer<SimpleArithmeticAdditionLayer>();