Skip to content

XNNPACK: read inputs with a non-default dim order in their memory layout - #22

Merged
msluszniak merged 1 commit into
@ms/separate-backends-1.4.1from
@ms/xnnpack-input-dim-order-1.4.1
Oct 22, 2026
Merged

msluszniak merged 1 commit into
@ms/separate-backends-1.4.1from
@ms/xnnpack-input-dim-order-1.4.1

Conversation

@msluszniak

Copy link
Copy Markdown

XNNExecutor reshapes every external input with its sizes listed in dim
order, i.e. as the buffer is laid out in memory, but preprocess defined the
input from its logical shape. An input recorded with, e.g., dim order
(1, 0, 2) (a transposed example input) therefore failed shape propagation
with xnn_status_invalid_parameter, or was read with its axes swapped.

Define such inputs in memory order and transpose them back to the logical
layout at the start of the graph. Channels-last inputs keep going through
ChannelsLastTaggedReshapePass. #14735 was the constant-tensor side of this.
@msluszniak
msluszniak merged commit 8a67662 into @ms/separate-backends-1.4.1 Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant