You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cortex-M: Support avg_pool2d ceil_mode lowering (#21039)
Cortex-M avg_pool2d quantized lowering rejected ceil_mode=True and left
the graph on the fallback aten.avg_pool2d path. That preserved
correctness but prevented optimized Cortex-M lowering for cases that
CMSIS-NN can execute from statically known output shapes.
This patch threads ceil_mode through the cortex_m::quantized_avg_pool2d
schema, fake implementation, lowering, and C++ kernel wrapper. The
wrapper validates the static output shape against ceil-mode pooling
semantics before dispatching to CMSIS-NN.
The avg_pool2d tests now cover optimized ceil_mode lowering, padded
ceil_mode, count_include_pad with ceil_mode, non-square multi-channel
ceil_mode, and divisor_override fallback behavior.
cc @digantdesai@freddan80@per@zingo@oscarandersson8218@mansnils@Sebastian-Larsson@robell@rascani
---------
Signed-off-by: Baris Demir <baris.demir@arm.com>
0 commit comments