Closed Bug 1930875 Opened 9 months ago Closed 9 months ago

[wpt-sync] Sync PR 49135 - webnn: Remove the MLContext.compute() method

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 49135 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/49135
Details from upstream follow.

Austin Sullivan <asully@chromium.org> wrote:

webnn: Remove the MLContext.compute() method

This method has been deprecated for dispatch()

OBSOLETE_HISTOGRAMS=compute() is deprecated in favor of dispatch()

Bug: 331351967
Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5874875
Reviewed-by: Phillis Tang \<phillis@chromium.org>
Reviewed-by: ningxin hu \<ningxin.hu@intel.com>
Reviewed-by: Weizhong Xia \<weizhong@google.com>
Commit-Queue: Austin Sullivan \<asully@chromium.org>
Reviewed-by: Alex Gough \<ajgo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1382157}

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 24 tests and 3 subtests

Status Summary

Firefox

OK : 18
FAIL : 108
ERROR : 6
NOTRUN: 18

Chrome

OK : 24
PASS : 126

Safari

OK : 18
FAIL : 108
ERROR : 6
NOTRUN: 18

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /webnn/validation_tests/constant-changed-buffer.https.any.html?cpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by detaching the buffer: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by changes to the buffer contents: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data cannot use a detached buffer, which is empty: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/constant-changed-buffer.https.any.worker.html?npu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by detaching the buffer: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by changes to the buffer contents: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data cannot use a detached buffer, which is empty: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/constant-changed-buffer.https.any.worker.html?cpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by detaching the buffer: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by changes to the buffer contents: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data cannot use a detached buffer, which is empty: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/constant-changed-buffer.https.any.worker.html?gpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by detaching the buffer: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by changes to the buffer contents: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data cannot use a detached buffer, which is empty: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/constant-changed-buffer.https.any.html?gpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by detaching the buffer: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by changes to the buffer contents: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data cannot use a detached buffer, which is empty: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/constant-changed-buffer.https.any.html?npu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by detaching the buffer: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data is unaffected by changes to the buffer contents: FAIL (Chrome: PASS, Safari: FAIL)
    • Constant data cannot use a detached buffer, which is empty: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyContext.https.any.worker.html?cpu [wpt.fyi]
    • Context will be lost by destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Context can be destroyed twice.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build operator.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create graph builder.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build graph.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not dispatch.: FAIL (Chrome: PASS, Safari: FAIL)
    • Executing dispatch() before context destroyed is OK.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not read tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Pending promise of readtensor() will be rejected immediately when context is destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not write tensor.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyContext.https.any.worker.html?gpu [wpt.fyi]
    • Context will be lost by destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Context can be destroyed twice.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build operator.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create graph builder.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build graph.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not dispatch.: FAIL (Chrome: PASS, Safari: FAIL)
    • Executing dispatch() before context destroyed is OK.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not read tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Pending promise of readtensor() will be rejected immediately when context is destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not write tensor.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyContext.https.any.html?cpu [wpt.fyi]
    • Context will be lost by destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Context can be destroyed twice.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build operator.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create graph builder.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build graph.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not dispatch.: FAIL (Chrome: PASS, Safari: FAIL)
    • Executing dispatch() before context destroyed is OK.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not read tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Pending promise of readtensor() will be rejected immediately when context is destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not write tensor.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyContext.https.any.worker.html?npu [wpt.fyi]
    • Context will be lost by destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Context can be destroyed twice.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build operator.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create graph builder.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build graph.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not dispatch.: FAIL (Chrome: PASS, Safari: FAIL)
    • Executing dispatch() before context destroyed is OK.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not read tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Pending promise of readtensor() will be rejected immediately when context is destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not write tensor.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyContext.https.any.html?npu [wpt.fyi]
    • Context will be lost by destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Context can be destroyed twice.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build operator.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create graph builder.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build graph.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not dispatch.: FAIL (Chrome: PASS, Safari: FAIL)
    • Executing dispatch() before context destroyed is OK.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not read tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Pending promise of readtensor() will be rejected immediately when context is destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not write tensor.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyContext.https.any.html?gpu [wpt.fyi]
    • Context will be lost by destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Context can be destroyed twice.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build operator.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create graph builder.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not build graph.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not dispatch.: FAIL (Chrome: PASS, Safari: FAIL)
    • Executing dispatch() before context destroyed is OK.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not create tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not read tensor.: FAIL (Chrome: PASS, Safari: FAIL)
    • Pending promise of readtensor() will be rejected immediately when context is destroyed.: FAIL (Chrome: PASS, Safari: FAIL)
    • Destroyed context can not write tensor.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/destroyGraph.https.any.html?gpu [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
    • Graph can be destroyed twice.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroyed graph can not dispatch.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroying graph after dispatch() and before readTensor() is OK.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
  • /webnn/validation_tests/destroyGraph.https.any.worker.html?gpu [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
    • Graph can be destroyed twice.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroyed graph can not dispatch.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroying graph after dispatch() and before readTensor() is OK.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
  • /webnn/validation_tests/destroyGraph.https.any.html?cpu [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
    • Graph can be destroyed twice.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroyed graph can not dispatch.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroying graph after dispatch() and before readTensor() is OK.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
  • /webnn/validation_tests/destroyGraph.https.any.html?npu [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
    • Graph can be destroyed twice.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroyed graph can not dispatch.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroying graph after dispatch() and before readTensor() is OK.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
  • /webnn/validation_tests/destroyGraph.https.any.worker.html?npu [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
    • Graph can be destroyed twice.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroyed graph can not dispatch.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroying graph after dispatch() and before readTensor() is OK.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
  • /webnn/validation_tests/destroyGraph.https.any.worker.html?cpu [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
    • Graph can be destroyed twice.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroyed graph can not dispatch.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
    • Destroying graph after dispatch() and before readTensor() is OK.: NOTRUN (Chrome: PASS, Safari: NOTRUN)
  • /webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.worker.html?gpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Test global average pool operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
    • Test reduceMean operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.html?gpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Test global average pool operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
    • Test reduceMean operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.worker.html?npu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Test global average pool operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
    • Test reduceMean operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.html?cpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Test global average pool operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
    • Test reduceMean operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.worker.html?cpu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Test global average pool operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
    • Test reduceMean operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.html?npu [wpt.fyi]
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Test global average pool operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
    • Test reduceMean operator's output shape for ResNetV2 50 model.: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02812cfa6c04 [wpt PR 49135] - webnn: Remove the MLContext.compute() method, a=testonly
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.