Skip to content

Conversation

@inexorabletash
Copy link
Contributor

@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 #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
@inexorabletash
Copy link
Contributor 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
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
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