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

Use unsigned long type for sizes option of resample2d #306

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

huningxin
Copy link
Contributor

@huningxin huningxin commented Dec 5, 2022

The sizes option of resample2d specifies the target sizes for each spatial dimensions of input operand. Its type should be consistent with the type of operand dimensions which is unsigned long.

fix #300

@wchao1115 @anssiko @wacky6, PTAL.


Preview | Diff

The sizes option of resample2d specifies the target sizes for each
spatial dimensions of input operand. Its type should be consistent with
the type of operand dimensions which is unsigned long.

fix webmachinelearning#300
@huningxin huningxin requested review from anssiko and wchao1115 and removed request for anssiko December 5, 2022 02:42
@anssiko
Copy link
Member

anssiko commented Dec 5, 2022

Thanks @huningxin for the patch and @lisa0314 for reporting the issue.

@anssiko
Copy link
Member

anssiko commented Dec 16, 2022

Thanks @wchao1115, @huningxin feel free to merge.

@BruceDai for wpt test alignment.

@huningxin
Copy link
Contributor Author

Thanks for the review and approval.

@huningxin huningxin merged commit 6bffedd into webmachinelearning:main Dec 20, 2022
github-actions bot added a commit that referenced this pull request Dec 20, 2022
SHA: 6bffedd
Reason: push, by huningxin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 18, 2023
This CL implements the WebNN spec changes [1] and [2] that fix the data
type of attributes for MLConv2dOptions, MLPool2dOptions and
MLResample2dOptions by using unsigned integers instead of signed
integers. For those attributes, the negative values are not meaningful.

The MLGraphBuilder, MLGraphBuilderTest and MLGraphXnnpack are updated
according to this IDL change.

[1]: webmachinelearning/webnn#294
[2]: webmachinelearning/webnn#306


Bug: 1273291
Change-Id: Ic7aa42ff20676b959695e66608d3254ce368c7e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4164044
Reviewed-by: Jiewei Qian <qjw@chromium.org>
Commit-Queue: ningxin hu <ningxin.hu@intel.com>
Cr-Commit-Position: refs/heads/main@{#1093807}
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.

The type of sizes defined in MLResample2dOptions should be unsigned long
3 participants