-
Notifications
You must be signed in to change notification settings - Fork 49
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 sequential filling overload of constant() #656
Conversation
Thanks Mr. Sully. I originally proposed adding it, but model analysis (~700 models, 19 of which have the op) shows the:
Additionally this sidesteps any of the implementation difference issues we encountered between TF and PyTorch and validation ambiguities about infinities in the data - if the caller wants infinity in the buffer, they upload their buffer with infinity (and WebNN doesn't stop them). This operator was not integrated yet into Chromium and is not used currently by known callers (e.g. here). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@inexorabletash I can't find your comment about the spec missing the IDL definition, but removing this overload makes that earlier comment moot:
|
Indeed. For posterity:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Thanks for the reviews! Please merge at your convenience :) |
SHA: 5b396da Reason: push, by fdwr Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This CL is to refactor WebNN API conformance tests infrastructure by optimizing utils.js helper and moving tests from JSON files into each test file. It also removes tests of dropped `constant(fillSequence)` op of WebNN API changes [1]. [1] [Remove sequential filling overload of constant()](webmachinelearning/webnn#656) Bug: 331692961 Change-Id: Ie57095d76ed1a87bcbd93dbade8962a1d4461627 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel
This CL is to refactor WebNN API conformance tests infrastructure by optimizing utils.js helper and moving tests from JSON files into each test file. It also removes tests of dropped `constant(fillSequence)` op of WebNN API changes [1]. [1] [Remove sequential filling overload of constant()](webmachinelearning/webnn#656) Bug: 331692961 Change-Id: Ie57095d76ed1a87bcbd93dbade8962a1d4461627 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668527 Auto-Submit: Feng Dai <[email protected]> Commit-Queue: Feng Dai <[email protected]> Reviewed-by: ningxin hu <[email protected]> Reviewed-by: David Baron <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1332944}
This CL is to refactor WebNN API conformance tests infrastructure by optimizing utils.js helper and moving tests from JSON files into each test file. It also removes tests of dropped `constant(fillSequence)` op of WebNN API changes [1]. [1] [Remove sequential filling overload of constant()](webmachinelearning/webnn#656) Bug: 331692961 Change-Id: Ie57095d76ed1a87bcbd93dbade8962a1d4461627 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668527 Auto-Submit: Feng Dai <[email protected]> Commit-Queue: Feng Dai <[email protected]> Reviewed-by: ningxin hu <[email protected]> Reviewed-by: David Baron <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1332944}
…sts infrastructure, a=testonly Automatic update from web-platform-tests webnn: refactor WebNN API conformance tests infrastructure This CL is to refactor WebNN API conformance tests infrastructure by optimizing utils.js helper and moving tests from JSON files into each test file. It also removes tests of dropped `constant(fillSequence)` op of WebNN API changes [1]. [1] [Remove sequential filling overload of constant()](webmachinelearning/webnn#656) Bug: 331692961 Change-Id: Ie57095d76ed1a87bcbd93dbade8962a1d4461627 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668527 Auto-Submit: Feng Dai <[email protected]> Commit-Queue: Feng Dai <[email protected]> Reviewed-by: ningxin hu <[email protected]> Reviewed-by: David Baron <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1332944} -- wpt-commits: 6a7911e50b773379ea947b2a6d18f36760910346 wpt-pr: 47291
…sts infrastructure, a=testonly Automatic update from web-platform-tests webnn: refactor WebNN API conformance tests infrastructure This CL is to refactor WebNN API conformance tests infrastructure by optimizing utils.js helper and moving tests from JSON files into each test file. It also removes tests of dropped `constant(fillSequence)` op of WebNN API changes [1]. [1] [Remove sequential filling overload of constant()](webmachinelearning/webnn#656) Bug: 331692961 Change-Id: Ie57095d76ed1a87bcbd93dbade8962a1d4461627 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668527 Auto-Submit: Feng Dai <[email protected]> Commit-Queue: Feng Dai <[email protected]> Reviewed-by: ningxin hu <[email protected]> Reviewed-by: David Baron <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1332944} -- wpt-commits: 6a7911e50b773379ea947b2a6d18f36760910346 wpt-pr: 47291
…sts infrastructure, a=testonly Automatic update from web-platform-tests webnn: refactor WebNN API conformance tests infrastructure This CL is to refactor WebNN API conformance tests infrastructure by optimizing utils.js helper and moving tests from JSON files into each test file. It also removes tests of dropped `constant(fillSequence)` op of WebNN API changes [1]. [1] [Remove sequential filling overload of constant()](webmachinelearning/webnn#656) Bug: 331692961 Change-Id: Ie57095d76ed1a87bcbd93dbade8962a1d4461627 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668527 Auto-Submit: Feng Dai <[email protected]> Commit-Queue: Feng Dai <[email protected]> Reviewed-by: ningxin hu <[email protected]> Reviewed-by: David Baron <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1332944} -- wpt-commits: 6a7911e50b773379ea947b2a6d18f36760910346 wpt-pr: 47291
Discussion on #492 (specifically, this comment #492 (comment)) concluded that this overload was not needed. Its behavior can be emulated by filling a buffer in JavaScript to be passed in with the buffer-based
constant()
overloadPreview | Diff