Skip to content

Correct pad scalar rank inconsistency - #894

Merged
fdwr merged 1 commit into
webmachinelearning:mainfrom
fdwr:scalarPad
Sep 30, 2025
Merged

fdwr merged 1 commit into
webmachinelearning:mainfrom
fdwr:scalarPad

Conversation

@fdwr

@fdwr fdwr commented Sep 30, 2025 •

Copy link
Copy Markdown
Collaborator

Fixes #893. The spec says pad's opSupportLimits support input ranks from 0 to N, and the Chromium implementation see PR supports scalar pad (acts as nop, like an empty transpose or tile would), but this one algorithm step says it doesn't. So, resolve the inconsistency by deleting that line.


Preview | Diff

@fdwr
fdwr requested a review from huningxin September 30, 2025 05:53

@huningxin huningxin 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.

LGTM, thanks @fdwr !

@fdwr
fdwr merged commit 0f6cae2 into webmachinelearning:main Sep 30, 2025
2 checks passed
github-actions Bot added a commit that referenced this pull request Sep 30, 2025
SHA: 0f6cae2
Reason: push, by fdwr

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to zolkis/webnn that referenced this pull request Oct 8, 2025
SHA: 0f6cae2
Reason: push, by zolkis

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Pad operator algorithm steps should not throw error for scalar input

2 participants