Add LpNormalization-22#27164
Merged
titaiwangms merged 9 commits intomainfrom Jan 28, 2026
Merged
Conversation
titaiwangms
commented
Jan 27, 2026
justinchuby
previously approved these changes
Jan 27, 2026
justinchuby
approved these changes
Jan 28, 2026
milpuz01
pushed a commit
to milpuz01/onnxruntime
that referenced
this pull request
Feb 4, 2026
…spec (microsoft#27164) I missed the operator since it didn't have the corresponding tests at the time. With onnx/onnx#7618, the disabled test should be able to pass. --- This pull request updates the ONNX Runtime CPU execution provider to add support for the `LpNormalization` operator for opset version 22, in addition to clarifying and correcting the registration for earlier versions. It also updates the backend test filters to reflect this new support. **ONNX Operator Kernel Registration:** * Added new kernel registrations for `LpNormalization` with opset version 22 for both `float` and `double` data types in `cpu_execution_provider.cc`. [[1]](diffhunk://#diff-054ffdd679ada14ebb4b1db27a60b2881e2db48f9dc3f0b948c784cdcdaf4908R1328-R1329) [[2]](diffhunk://#diff-054ffdd679ada14ebb4b1db27a60b2881e2db48f9dc3f0b948c784cdcdaf4908R3389-R3392) * Updated the registration for `LpNormalization` for opset versions 1 through 21 to use the correct versioned kernel macro, ensuring correct kernel selection and compatibility. [[1]](diffhunk://#diff-054ffdd679ada14ebb4b1db27a60b2881e2db48f9dc3f0b948c784cdcdaf4908L197-R198) [[2]](diffhunk://#diff-054ffdd679ada14ebb4b1db27a60b2881e2db48f9dc3f0b948c784cdcdaf4908L1731-R1735) **Test Filters Update:** * Updated `onnx_backend_test_series_filters.jsonc` to remove the exclusion of `test_l1normalization*`, `test_lpnormalization*`, and `test_l2normalization*` now that `LpNormalization` opset 22 is implemented, and added a TODO comment referencing ONNX 1.21 for a known zero-norm issue. [[1]](diffhunk://#diff-abc0f78c2314f9e7648c8081125d0ce9f33b12399520d92d811d73e3c795ed59R32-R33) [[2]](diffhunk://#diff-abc0f78c2314f9e7648c8081125d0ce9f33b12399520d92d811d73e3c795ed59L42) [[3]](diffhunk://#diff-abc0f78c2314f9e7648c8081125d0ce9f33b12399520d92d811d73e3c795ed59L70-L71)
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.
I missed the operator since it didn't have the corresponding tests at the time.
With onnx/onnx#7618, the disabled test should be able to pass.
This pull request updates the ONNX Runtime CPU execution provider to add support for the
LpNormalizationoperator for opset version 22, in addition to clarifying and correcting the registration for earlier versions. It also updates the backend test filters to reflect this new support.ONNX Operator Kernel Registration:
LpNormalizationwith opset version 22 for bothfloatanddoubledata types incpu_execution_provider.cc. [1] [2]LpNormalizationfor opset versions 1 through 21 to use the correct versioned kernel macro, ensuring correct kernel selection and compatibility. [1] [2]Test Filters Update:
onnx_backend_test_series_filters.jsoncto remove the exclusion oftest_l1normalization*,test_lpnormalization*, andtest_l2normalization*now thatLpNormalizationopset 22 is implemented, and added a TODO comment referencing ONNX 1.21 for a known zero-norm issue. [1] [2] [3]