Repository navigation
Commit ba4c005
authored
Cortex-M: check the output dim order in quantized_conv2d (pytorch#21752)
### Summary
The output channels_last guard tested the input tensor, so an NCHW
output would reach arm_convolve_wrapper_s8 and produce silently
transposed results. The depthwise and transpose-conv kernels already
validate their own outputs.
Also drops the local kChannelsLastDimOrder/channels_last_order pair,
which became dead when is_channels_last_tensor moved into
cortex_m_ops_common.h and grew its own copy.
Authored with assistance from Claude Code.1 parent bf2103d commit ba4c005
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
51 | | - | |
| 46 | + | |
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
| |||
0 commit comments