diff --git a/onert-micro/luci-interpreter/pal/common/PALL2Pool2D.h b/onert-micro/luci-interpreter/pal/common/PALL2Pool2D.h index 9744dd02f1e..c58aae68c1e 100644 --- a/onert-micro/luci-interpreter/pal/common/PALL2Pool2D.h +++ b/onert-micro/luci-interpreter/pal/common/PALL2Pool2D.h @@ -66,6 +66,7 @@ inline void L2Pool(const PoolParams ¶ms, const luci_interpreter::RuntimeShap filter_count++; } } + assert(filter_count != 0); const float l2pool_result = std::sqrt(sum_squares / filter_count); output_data[offset(output_shape.dimsData(), batch, out_y, out_x, channel)] = activationFunctionWithMinMax(l2pool_result, params.float_activation_min,