Skip to content

Fill Reshape CUDA operator opset gap from 23 to 25#27742

Open
Copilot wants to merge 3 commits intomainfrom
copilot/update-reshape-cuda-operator
Open

Fill Reshape CUDA operator opset gap from 23 to 25#27742
Copilot wants to merge 3 commits intomainfrom
copilot/update-reshape-cuda-operator

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 18, 2026

Description

Extends the Reshape CUDA kernel registration from opset 23 to opset 25, following the same pattern used in #27728.

  • reshape.cc: Cap existing non-versioned opset 23 kernel → versioned (23, 24); add new non-versioned kernel at opset 25
  • cuda_execution_provider.cc: Update forward declaration and BuildKernelCreateInfo for versioned (23, 24); add opset 25 entries
  • docs/OperatorKernels.md: Update Reshape CUDA EP entry from 23+ to 25+ and add [23, 24] versioned range row

No functional changes to the kernel itself — the opset 25 schema is backward-compatible with opset 23.

Motivation and Context

Reshape is listed as a P1 gap in #27729 (CUDA max opset 23, ONNX latest opset 25). Models exported at opset 25 would fail to find a matching Reshape kernel on the CUDA EP.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
@tianleiwu
Copy link
Copy Markdown
Contributor

/azp run Windows GPU Doc Gen CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@tianleiwu
Copy link
Copy Markdown
Contributor

tianleiwu commented Mar 18, 2026

@copilot, please update docs/OperatorKernels.md, and merge latest main branch to this branch.

Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot, please update docs/OperatorKernels.md, and merge latest main branch to this branch.

Updated in 2c7dfd5 — changed Reshape CUDA EP entry from 23+ to 25+ and added a [23, 24] versioned range row.

Copilot AI requested a review from tianleiwu March 18, 2026 23:10
@tianleiwu
Copy link
Copy Markdown
Contributor

/azp run Windows GPU Doc Gen CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@tianleiwu tianleiwu marked this pull request as ready for review March 18, 2026 23:46
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.

2 participants