SIGN IN SIGN UP

Fix DS-CNN Cortex-M input memory format (#21485)

### Summary

The shared DS-CNN model wrapper returned a contiguous NCHW example
input, while the Cortex-M backend requires channels-last inputs. This
caused the nightly Cortex-M FVP run to abort in
`cortex_m::quantized_depthwise_conv2d.out` with `input must be
channels_last`.

Convert the example input to channels-last, matching the existing
Cortex-M DS-CNN tests and backend contract. The tensor values and eager
model output are unchanged.

### Test plan

Ran `python -m py_compile examples/models/mlperf_tiny/ds_cnn.py` and
`git diff --check`. Loaded the patched wrapper and verified input stride
`(490, 1, 10, 1)`, eager output shape `(1, 12)`, and the exported
user-input stride `(490, 1, 10, 1)`.

Authored with Claude.
J
Jacob Szwejbka committed
d632341cb213a0012cb8c7138cc3efa5e5df3500
Parent: 4e285f4
Committed by GitHub <noreply@github.com> on 7/30/2026, 4:50:35 PM