Skip to content

[WebNN EP] Support LpNormalization op - #31197

Merged
fdwr merged 2 commits into
microsoft:mainfrom
Honry:lpNormalization
Aug 3, 2026
Merged

[WebNN EP] Support LpNormalization op#31197
fdwr merged 2 commits into
microsoft:mainfrom
Honry:lpNormalization

Conversation

@Honry

@Honry Honry commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

WebNN has no dedicated LpNormalization operator, so decompose it into: output = input / max(Lp_norm(input, axis), eps)

  • p==1: norm = reduceL1(input, {axis})
  • p==2: norm = reduceL2(input, {axis})

WebNN has no dedicated `LpNormalization` operator, so decompose it into:
`output = input / max(Lp_norm(input, axis), eps)`

- p==1: `norm = reduceL1(input, {axis})`
- p==2: `norm = reduceL2(input, {axis});`
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@Honry

Honry commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@fdwr, PTAL, thanks!

Comment thread onnxruntime/core/providers/webnn/builders/impl/lpNormalization_op_builder.cc Outdated

@fdwr fdwr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fdwr

fdwr commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

/azp run Test Linux CUDA x64 Release,web_Debug / build_onnxruntime_web,web_Release / build_onnxruntime_web,web_Release / build_onnxruntime_web

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@fdwr
fdwr merged commit ad094ca into microsoft:main Aug 3, 2026
86 checks passed
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