Skip to content

Comments

Remove argmin/max selectLastIndex parameter#722

Merged
huningxin merged 1 commit intowebmachinelearning:mainfrom
philloooo:main
Jul 12, 2024
Merged

Remove argmin/max selectLastIndex parameter#722
huningxin merged 1 commit intowebmachinelearning:mainfrom
philloooo:main

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
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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1328688}
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
… 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 <[email protected]>
Reviewed-by: Elly FJ <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: Bin Miao <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1328688}

--

wpt-commits: 40e2956b57dcb5598df544e6894de37a5ae7c16a
wpt-pr: 47166
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