Add `ShouldConvertDataLayoutForOp()` API to allow EPs to customize layout sensitive ops by edgchen1 · Pull Request #25147 · microsoft/onnxruntime

added 6 commits

June 23, 2025 13:18

@edgchen1

@edgchen1

@edgchen1 edgchen1 marked this pull request as ready for review

June 25, 2025 02:55

edgchen1

github-actions[bot]

@edgchen1

@edgchen1

@edgchen1 edgchen1 changed the title Add IExecutionProvider::ShouldConvertNodeLayoutToNhwc() to allow EPs to customize layout sensitive ops Add ShouldConvertNodeLayoutToNhwc() API to allow EPs to customize layout sensitive ops

Jun 26, 2025

@edgchen1

edgchen1

adrianlizarraga

@edgchen1

@edgchen1 edgchen1 changed the title Add ShouldConvertNodeLayoutToNhwc() API to allow EPs to customize layout sensitive ops Add ShouldConvertDataLayoutForOp() API to allow EPs to customize layout sensitive ops

Jun 27, 2025

@edgchen1

adrianlizarraga

skottmckay

@edgchen1 edgchen1 deleted the edgchen1/ep_layout_sensitive_ops branch

June 30, 2025 17:03

daijh pushed a commit to daijh/onnxruntime that referenced this pull request

Jul 10, 2025
…yout sensitive ops (microsoft#25147)

### Description
<!-- Describe your changes. -->

Add `IExecutionProvider::ShouldConvertDataLayoutForOp()` to allow EPs to
customize layout sensitive ops. Move existing hardcoded EP-specific
logic out of layout transformer code.

Add `OrtEp::ShouldConvertDataLayoutForOp` to ABI EP API to allow similar
customization by plugin EPs.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Enable layout sensitive op customization through internal EP interface
and the ABI EP API.

quic-ankus pushed a commit to CodeLinaro/onnxruntime that referenced this pull request

Nov 25, 2025
…yout sensitive ops (microsoft#25147)

### Description
<!-- Describe your changes. -->

Add `IExecutionProvider::ShouldConvertDataLayoutForOp()` to allow EPs to
customize layout sensitive ops. Move existing hardcoded EP-specific
logic out of layout transformer code.

Add `OrtEp::ShouldConvertDataLayoutForOp` to ABI EP API to allow similar
customization by plugin EPs.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Enable layout sensitive op customization through internal EP interface
and the ABI EP API.