onnxruntime
30ad3505 - Add LpNormalization-22 and update the implementation to respect ONNX spec (#27164)

Commit
101 days ago
Add LpNormalization-22 and update the implementation to respect ONNX spec (#27164) I missed the operator since it didn't have the corresponding tests at the time. With https://github.com/onnx/onnx/pull/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)
Author
Parents
Loading