Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: Remove null value support in reshape()'s newShape parameter #505

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented Jan 12, 2024

As noted in issue #388, the reshape op build method currently supports a special null value in newShape array that instructs the implementation to compute the size of the dimension with the value null so that the total size remains constant. @fwdr proposed WebNN should only support the concrete values in newShape because this can be easily handled by framework through shape inference

It appears this change has already landed in the Chromium implementation and WPTs.

Fixes #388


Preview | Diff

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 for the fix!

As noted in issue webmachinelearning#388, the reshape op build method currently supports
a special null value in newShape array that instructs the
implementation to compute the size of the dimension with the value
null so that the total size remains constant. @fwdr proposed WebNN
should only support the concrete values in newShape because this can
be easily handled by framework through shape inference

It appears this change has already landed in the Chromium
implementation and WPTs.

Fixes webmachinelearning#388
@inexorabletash
Copy link
Member Author

Rebased - Preview | Diff now available.

@wchao1115 wchao1115 self-requested a review January 20, 2024 21:46
@wchao1115 wchao1115 merged commit c44fe62 into webmachinelearning:main Jan 20, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Jan 20, 2024
…505)

SHA: c44fe62
Reason: push, by wchao1115

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@inexorabletash inexorabletash deleted the reshapenull branch January 21, 2024 00:23
inexorabletash added a commit to inexorabletash/webnn that referenced this pull request Mar 13, 2024
Per webmachinelearning#388, the change webmachinelearning#505 removed null value support in reshape()'s
newShape parameter. That pull request missed updating the prose
description to match.
fdwr pushed a commit that referenced this pull request Mar 13, 2024
Per #388, the change #505 removed null value support in reshape()'s
newShape parameter. That pull request missed updating the prose
description to match.
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.

Remove the support of null value in newShape parameter of reshape build method
4 participants