Fill CUDA opset gap for Elu, Selu, ThresholdedRelu to opset 22 - #27753
Draft
Tianlei Wu (tianleiwu) with Copilot wants to merge 1 commit into
Draft
Tianlei Wu (tianleiwu) with Copilot wants to merge 1 commit into
Tianlei Wu (tianleiwu) with Copilot wants to merge 1 commit into
Conversation
Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Tianlei Wu (tianleiwu)
March 19, 2026 00:03
View session
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Extends CUDA kernel registrations for Elu (6→22), Selu (6→22), and ThresholdedRelu (10→22) to cover the latest ONNX opset, following the established HardSigmoid/HardSwish pattern.
activations.cc: Cap existing non-versioned kernels to versioned 6/10–21, add non-versioned opset 22 registrations with BFloat16 supportcuda_execution_provider.cc: Update forward declarations andBuildKernelCreateInfoentries fromONNX_OPERATOR_TYPED_KERNEL_CLASS_NAME→ONNX_OPERATOR_VERSIONED_TYPED_KERNEL_CLASS_NAMEfor old ranges; add opset 22 entries for float, double, MLFloat16, BFloat16Motivation and Context
CUDA EP had opset registration gaps for these three activation operators — models exported at opset ≥7 (Elu/Selu) or ≥11 (ThresholdedRelu) could not find a matching CUDA kernel. Tracked in #27729.