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

Remove argmin/max selectLastIndex parameter #722

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

philloooo
Copy link
Contributor

@philloooo philloooo commented Jul 11, 2024

Fixes #652
This removes the selectLastIndex parameter from argMin and argMax, given that the CoreML backend has no guarantee of return value in case of ties.

@fdwr please take a look :)


Preview | Diff

@fdwr fdwr requested a review from huningxin July 11, 2024 21:18
Copy link
Collaborator

@fdwr fdwr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👀

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!

@huningxin huningxin merged commit af67a72 into webmachinelearning:main Jul 12, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Jul 12, 2024
SHA: af67a72
Reason: push, by huningxin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 16, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 17, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 17, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
aarongable pushed a commit to chromium/chromium that referenced this pull request Jul 17, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 17, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 17, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}
sadym-chromium pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 18, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 18, 2024
… parameter, a=testonly

Automatic update from web-platform-tests
WebNN: Remove argmin/max selectLastIndex parameter

This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try​:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}

--

wpt-commits: 40e2956b57dcb5598df544e6894de37a5ae7c16a
wpt-pr: 47166
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jul 20, 2024
… parameter, a=testonly

Automatic update from web-platform-tests
WebNN: Remove argmin/max selectLastIndex parameter

This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try​:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}

--

wpt-commits: 40e2956b57dcb5598df544e6894de37a5ae7c16a
wpt-pr: 47166
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 22, 2024
This CL removes the selectLastIndex parameter from argMin and argMax to
align with the spec change [1].

The changes include the definition of IDL and mojo, the implementation
of DirectML and TfLite backend and the related unit tests and WPT tests.

[1] webmachinelearning/webnn#722

Bug: 352314071, 40206287
Change-Id: Ifbb1c5b8c5eef41f87b279c2b1018d2d5d0198ea
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5700708
Reviewed-by: Phillis Tang <phillis@chromium.org>
Reviewed-by: Elly FJ <ellyjones@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Bin Miao <bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1328688}
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.

ArgMax/Min selectLastIndex is not supported on CoreML
3 participants