Skip to content

Comments

Correct pad scalar rank inconsistency#894

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

Correct pad scalar rank inconsistency#894
fdwr merged 1 commit intowebmachinelearning:mainfrom
fdwr:scalarPad

Conversation

@fdwr
Copy link
Collaborator

@fdwr fdwr commented Sep 30, 2025

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
Copy link
Contributor

@huningxin huningxin left a comment

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