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
marked this pull request as ready for review
edgchen1
changed the title
Add
Add IExecutionProvider::ShouldConvertNodeLayoutToNhwc() to allow EPs to customize layout sensitive opsShouldConvertNodeLayoutToNhwc() API to allow EPs to customize layout sensitive ops
edgchen1
changed the title
Add
Add ShouldConvertNodeLayoutToNhwc() API to allow EPs to customize layout sensitive opsShouldConvertDataLayoutForOp() API to allow EPs to customize layout sensitive ops
edgchen1
deleted the
edgchen1/ep_layout_sensitive_ops
branch
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters