webnn: Remove the MLContext.compute() method [chromium/src : main]

0 views
Skip to first unread message

ningxin hu (Gerrit)

unread,
Oct 30, 2024, 10:06:06 PMOct 30
to Austin Sullivan, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Austin Sullivan

ningxin hu added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
ningxin hu . resolved

@asully What's the plan for this CL?

The webnn-samples and WebNN EP haven used dispatch. WebNN dev preview demos are moving to use latest ORT WebNN EP, so that will use dispatch soon. I think it is ready for deprecate compute. And @bryan.b...@intel.com also has some optimization work for dispatch pending on removing compute path.

https://github.com/webmachinelearning/webnn-samples/pull/276
https://github.com/microsoft/onnxruntime/pull/21301

Open in Gerrit

Related details

Attention is currently required from:
  • Austin Sullivan
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Gerrit-Change-Number: 5874875
Gerrit-PatchSet: 4
Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
Gerrit-CC: ningxin hu <ningx...@intel.com>
Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
Gerrit-Comment-Date: Thu, 31 Oct 2024 02:05:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Austin Sullivan (Gerrit)

unread,
Oct 30, 2024, 10:43:28 PMOct 30
to Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from ningxin hu

Austin Sullivan added 1 comment

Patchset-level comments
ningxin hu . resolved

@asully What's the plan for this CL?

The webnn-samples and WebNN EP haven used dispatch. WebNN dev preview demos are moving to use latest ORT WebNN EP, so that will use dispatch soon. I think it is ready for deprecate compute. And @bryan.b...@intel.com also has some optimization work for dispatch pending on removing compute path.

https://github.com/webmachinelearning/webnn-samples/pull/276
https://github.com/microsoft/onnxruntime/pull/21301

Austin Sullivan

I'd like to merge it as soon as possible!

Unfortunately this CL makes ~all the WPTs fail, since they overwhelmingly use `compute()`. So this CL is blocked on https://crrev.com/c/5556220. @feng...@intel.com and I discussed this here: https://chromium-review.googlesource.com/c/chromium/src/+/5556220/comment/dab5ab45_a091cf23/

Open in Gerrit

Related details

Attention is currently required from:
  • ningxin hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Gerrit-Change-Number: 5874875
Gerrit-PatchSet: 4
Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Feng Dai <feng...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
Gerrit-CC: ningxin hu <ningx...@intel.com>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Comment-Date: Thu, 31 Oct 2024 02:43:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Feng Dai (Gerrit)

unread,
Nov 12, 2024, 3:20:50 AMNov 12
to Austin Sullivan, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Austin Sullivan and ningxin hu

Feng Dai added 1 comment

Patchset-level comments
ningxin hu . resolved

@asully What's the plan for this CL?

The webnn-samples and WebNN EP haven used dispatch. WebNN dev preview demos are moving to use latest ORT WebNN EP, so that will use dispatch soon. I think it is ready for deprecate compute. And @bryan.b...@intel.com also has some optimization work for dispatch pending on removing compute path.

https://github.com/webmachinelearning/webnn-samples/pull/276
https://github.com/microsoft/onnxruntime/pull/21301

Austin Sullivan

I'd like to merge it as soon as possible!

Unfortunately this CL makes ~all the WPTs fail, since they overwhelmingly use `compute()`. So this CL is blocked on https://crrev.com/c/5556220. @feng...@intel.com and I discussed this here: https://chromium-review.googlesource.com/c/chromium/src/+/5556220/comment/dab5ab45_a091cf23/

Feng Dai

@asu...@chromium.org My CL https://chromium-review.googlesource.com/c/chromium/src/+/5556220 has been landed, please rebase this CL, thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Austin Sullivan
  • ningxin hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Gerrit-Change-Number: 5874875
Gerrit-PatchSet: 4
Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Feng Dai <feng...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
Gerrit-CC: ningxin hu <ningx...@intel.com>
Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Comment-Date: Tue, 12 Nov 2024 08:20:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Austin Sullivan <asu...@chromium.org>
Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Austin Sullivan (Gerrit)

unread,
Nov 12, 2024, 2:12:27 PMNov 12
to Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Phillis Tang and ningxin hu

Austin Sullivan added 2 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Austin Sullivan . resolved

Hey @phi...@chromium.org PTAL at this overall change? It passes tests locally so I'm speculatively putting it up for review 🤞

Once it LGTY I'll add mojom and VirtualTestSuite owners

File services/webnn/webnn_context_impl.h
File-level comment, Patchset 7 (Latest):
Austin Sullivan . resolved

Note: I turned on an IWYU tool to make sure I removed #includes which are now unused with `compute()` gone, hence all these #include changes

Open in Gerrit

Related details

Attention is currently required from:
  • Phillis Tang
  • ningxin hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Gerrit-Change-Number: 5874875
Gerrit-PatchSet: 7
Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Feng Dai <feng...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
Gerrit-CC: Reilly Grant <rei...@chromium.org>
Gerrit-CC: ningxin hu <ningx...@intel.com>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Attention: Phillis Tang <phi...@chromium.org>
Gerrit-Comment-Date: Tue, 12 Nov 2024 19:12:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Phillis Tang (Gerrit)

unread,
Nov 12, 2024, 2:28:34 PMNov 12
to Austin Sullivan, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Austin Sullivan and ningxin hu

Phillis Tang voted and added 1 comment

Votes added by Phillis Tang

Code-Review+1

1 comment

Patchset-level comments
Phillis Tang . resolved

LGTM! we will need to rebaseline the idlharness expectation after the spec is updated?

Open in Gerrit

Related details

Attention is currently required from:
  • Austin Sullivan
  • ningxin hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Gerrit-Change-Number: 5874875
Gerrit-PatchSet: 7
Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Feng Dai <feng...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
Gerrit-CC: Reilly Grant <rei...@chromium.org>
Gerrit-CC: ningxin hu <ningx...@intel.com>
Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Comment-Date: Tue, 12 Nov 2024 19:28:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Austin Sullivan (Gerrit)

unread,
Nov 12, 2024, 2:33:52 PMNov 12
to Weizhong Xia, Alex Gough, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Alex Gough, Weizhong Xia and ningxin hu

Austin Sullivan added 2 comments

Patchset-level comments
Phillis Tang . resolved

LGTM! we will need to rebaseline the idlharness expectation after the spec is updated?

Austin Sullivan

Correct. I figure this CL will likely merge before the spec changes, so this seems fine for now

Austin Sullivan . resolved

PTAL? Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Gough
  • Weizhong Xia
  • ningxin hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
Gerrit-Change-Number: 5874875
Gerrit-PatchSet: 7
Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
Gerrit-Reviewer: Weizhong Xia <weiz...@google.com>
Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Feng Dai <feng...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
Gerrit-CC: Reilly Grant <rei...@chromium.org>
Gerrit-CC: ningxin hu <ningx...@intel.com>
Gerrit-Attention: Weizhong Xia <weiz...@google.com>
Gerrit-Attention: Alex Gough <aj...@chromium.org>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Comment-Date: Tue, 12 Nov 2024 19:33:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Phillis Tang <phi...@chromium.org>
satisfied_requirement
open
diffy

Alex Gough (Gerrit)

unread,
Nov 12, 2024, 2:39:33 PMNov 12
to Austin Sullivan, Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Austin Sullivan, Weizhong Xia and ningxin hu

Alex Gough voted and added 1 comment

Votes added by Alex Gough

Code-Review+1

1 comment

Patchset-level comments
Alex Gough . resolved

lgtm mojom

Open in Gerrit

Related details

Attention is currently required from:
  • Austin Sullivan
  • Weizhong Xia
  • ningxin hu
Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
Gerrit-Attention: Weizhong Xia <weiz...@google.com>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Comment-Date: Tue, 12 Nov 2024 19:39:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Austin Sullivan (Gerrit)

unread,
Nov 12, 2024, 3:11:36 PMNov 12
to Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Weizhong Xia and ningxin hu

Austin Sullivan voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Weizhong Xia
  • ningxin hu
Gerrit-Attention: Weizhong Xia <weiz...@google.com>
Gerrit-Attention: ningxin hu <ningx...@intel.com>
Gerrit-Comment-Date: Tue, 12 Nov 2024 20:11:25 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

ningxin hu (Gerrit)

unread,
Nov 12, 2024, 7:26:16 PMNov 12
to Austin Sullivan, Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
Attention needed from Austin Sullivan and Weizhong Xia

ningxin hu added 4 comments

File services/webnn/dml/graph_impl_dml.h
Line 401, Patchset 8 (Latest): std::unique_ptr<ComputeResources> compute_resources_;
ningxin hu . unresolved

This member is not needed anymore.

Line 243, Patchset 8 (Latest): RecordGraphExecutionOnBackgroundThread(
ningxin hu . unresolved

Same here, this method is not needed anymore.

Line 227, Patchset 8 (Latest): static HRESULT RecordGraphExecution(
ningxin hu . unresolved

This method can be removed as well.

Line 169, Patchset 8 (Latest): struct ComputeResources {
ningxin hu . unresolved

I suppose the `ComputeResources` can be removed.

Open in Gerrit

Related details

Attention is currently required from:
  • Austin Sullivan
  • Weizhong Xia
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
    Gerrit-Change-Number: 5874875
    Gerrit-PatchSet: 8
    Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
    Gerrit-Reviewer: Weizhong Xia <weiz...@google.com>
    Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Feng Dai <feng...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
    Gerrit-CC: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
    Gerrit-Attention: Weizhong Xia <weiz...@google.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 00:26:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Austin Sullivan (Gerrit)

    unread,
    Nov 12, 2024, 9:30:00 PMNov 12
    to Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
    Attention needed from Weizhong Xia and ningxin hu

    Austin Sullivan voted and added 1 comment

    Votes added by Austin Sullivan

    Auto-Submit+1

    1 comment

    File services/webnn/dml/graph_impl_dml.h
    Line 243, Patchset 8 (Latest): RecordGraphExecutionOnBackgroundThread(
    ningxin hu . unresolved

    Same here, this method is not needed anymore.

    Austin Sullivan

    Hmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Weizhong Xia
    • ningxin hu
    Gerrit-Attention: Weizhong Xia <weiz...@google.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 02:29:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Austin Sullivan (Gerrit)

    unread,
    Nov 12, 2024, 9:30:36 PMNov 12
    to Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
    Attention needed from Weizhong Xia and ningxin hu

    Austin Sullivan removed a vote from this change

    Removed Auto-Submit+1 by Austin Sullivan <asu...@chromium.org>
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Weizhong Xia
    • ningxin hu
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: deleteVote
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    ningxin hu (Gerrit)

    unread,
    Nov 12, 2024, 10:26:49 PMNov 12
    to Austin Sullivan, Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
    Attention needed from Austin Sullivan and Weizhong Xia

    ningxin hu added 1 comment

    File services/webnn/dml/graph_impl_dml.h
    Line 243, Patchset 8 (Latest): RecordGraphExecutionOnBackgroundThread(
    ningxin hu . unresolved

    Same here, this method is not needed anymore.

    Austin Sullivan

    Hmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?

    ningxin hu

    It is only used to pre-record the command list for compute (in compute resources). I can open an issue and remove them in a follow-up CL, if you are fine with that. WDYT?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Austin Sullivan
    • Weizhong Xia
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
    Gerrit-Change-Number: 5874875
    Gerrit-PatchSet: 8
    Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
    Gerrit-Reviewer: Weizhong Xia <weiz...@google.com>
    Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Feng Dai <feng...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
    Gerrit-CC: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
    Gerrit-Attention: Weizhong Xia <weiz...@google.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 03:26:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Austin Sullivan (Gerrit)

    unread,
    Nov 12, 2024, 11:10:45 PMNov 12
    to Alex Gough, Weizhong Xia, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
    Attention needed from Weizhong Xia and ningxin hu

    Austin Sullivan added 1 comment

    File services/webnn/dml/graph_impl_dml.h
    Line 243, Patchset 8 (Latest): RecordGraphExecutionOnBackgroundThread(
    ningxin hu . resolved

    Same here, this method is not needed anymore.

    Austin Sullivan

    Hmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?

    ningxin hu

    It is only used to pre-record the command list for compute (in compute resources). I can open an issue and remove them in a follow-up CL, if you are fine with that. WDYT?

    Austin Sullivan

    SGTM let's do that :)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Weizhong Xia
    • ningxin hu
    Gerrit-Attention: Weizhong Xia <weiz...@google.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 04:10:34 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Weizhong Xia (Gerrit)

    unread,
    Nov 12, 2024, 11:57:13 PMNov 12
    to Austin Sullivan, Alex Gough, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, ningxin hu, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
    Attention needed from Austin Sullivan and ningxin hu

    Weizhong Xia voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Austin Sullivan
    • ningxin hu
    Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 04:57:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    ningxin hu (Gerrit)

    unread,
    Nov 13, 2024, 12:20:49 AMNov 13
    to Austin Sullivan, Weizhong Xia, Alex Gough, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org
    Attention needed from Austin Sullivan

    ningxin hu voted and added 5 comments

    Votes added by ningxin hu

    Code-Review+1

    5 comments

    Patchset-level comments
    File services/webnn/dml/graph_impl_dml.h
    Line 401, Patchset 8 (Latest): std::unique_ptr<ComputeResources> compute_resources_;
    ningxin hu . resolved

    This member is not needed anymore.

    Line 243, Patchset 8 (Latest): RecordGraphExecutionOnBackgroundThread(
    ningxin hu . resolved

    Same here, this method is not needed anymore.

    Austin Sullivan

    Hmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?

    ningxin hu

    It is only used to pre-record the command list for compute (in compute resources). I can open an issue and remove them in a follow-up CL, if you are fine with that. WDYT?

    Austin Sullivan

    SGTM let's do that :)

    ningxin hu

    Opened https://issues.chromium.org/issues/378779891, I'll upload a CL after this CL landed.

    Line 227, Patchset 8 (Latest): static HRESULT RecordGraphExecution(
    ningxin hu . resolved

    This method can be removed as well.

    Line 169, Patchset 8 (Latest): struct ComputeResources {
    ningxin hu . resolved

    I suppose the `ComputeResources` can be removed.

    Related details

    Attention is currently required from:
    • Austin Sullivan
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
    Gerrit-Change-Number: 5874875
    Gerrit-PatchSet: 8
    Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
    Gerrit-Reviewer: Weizhong Xia <weiz...@google.com>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Feng Dai <feng...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
    Gerrit-CC: Reilly Grant <rei...@chromium.org>
    Gerrit-Attention: Austin Sullivan <asu...@chromium.org>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 05:20:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Austin Sullivan (Gerrit)

    unread,
    Nov 13, 2024, 1:18:18 AMNov 13
    to ningxin hu, Weizhong Xia, Alex Gough, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org

    Austin Sullivan voted and added 1 comment

    Votes added by Austin Sullivan

    Commit-Queue+2

    1 comment

    Patchset-level comments
    Austin Sullivan . resolved

    Thanks for all the reviews! Submitting now 🎉

    Open in Gerrit

    Related details

    Attention set is empty
    Gerrit-Comment-Date: Wed, 13 Nov 2024 06:18:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Nov 13, 2024, 1:22:24 AMNov 13
    to Austin Sullivan, ningxin hu, Weizhong Xia, Alex Gough, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    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-by: Phillis Tang <phi...@chromium.org>
    Reviewed-by: ningxin hu <ningx...@intel.com>
    Reviewed-by: Weizhong Xia <weiz...@google.com>
    Commit-Queue: Austin Sullivan <asu...@chromium.org>
    Reviewed-by: Alex Gough <aj...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1382157}
    Files:
    • M services/webnn/coreml/graph_impl_coreml.h
    • M services/webnn/coreml/graph_impl_coreml.mm
    • M services/webnn/dml/context_impl_dml.h
    • M services/webnn/dml/graph_impl_dml.cc
    • M services/webnn/dml/graph_impl_dml.h
    • M services/webnn/error.h
    • M services/webnn/public/mojom/webnn_graph.mojom
    • M services/webnn/tflite/graph_impl_tflite.cc
    • M services/webnn/tflite/graph_impl_tflite.h
    • M services/webnn/webnn_context_impl.cc
    • M services/webnn/webnn_context_impl.h
    • M services/webnn/webnn_context_provider_impl.cc
    • M services/webnn/webnn_graph_builder_impl_unittest.cc
    • M services/webnn/webnn_graph_impl.cc
    • M services/webnn/webnn_graph_impl.h
    • M services/webnn/webnn_graph_impl_backend_test.cc
    • M services/webnn/webnn_graph_impl_unittest.cc
    • M third_party/blink/renderer/bindings/generated_in_modules.gni
    • M third_party/blink/renderer/modules/ml/ml_context.cc
    • M third_party/blink/renderer/modules/ml/ml_context.h
    • M third_party/blink/renderer/modules/ml/ml_context.idl
    • M third_party/blink/renderer/modules/ml/webnn/ml_graph.cc
    • M third_party/blink/renderer/modules/ml/webnn/ml_graph.h
    • M third_party/blink/renderer/modules/ml/webnn/ml_graph_test.cc
    • M third_party/blink/renderer/modules/ml/webnn/ml_graph_utils.cc
    • M third_party/blink/renderer/modules/ml/webnn/ml_graph_utils.h
    • M third_party/blink/web_tests/NeverFixTests
    • M third_party/blink/web_tests/VirtualTestSuites
    • D third_party/blink/web_tests/external/wpt/webnn/conformance_tests/compute-arraybufferview-with-bigger-arraybuffer.https.any.js
    • D third_party/blink/web_tests/external/wpt/webnn/conformance_tests/parallel-compute.https.any.js
    • D third_party/blink/web_tests/external/wpt/webnn/validation_tests/compute-multiple-arraybufferviews-sharing-same-arraybuffer.https.any.js
    • M third_party/blink/web_tests/external/wpt/webnn/validation_tests/constant-changed-buffer.https.any.js
    • M third_party/blink/web_tests/external/wpt/webnn/validation_tests/destroyContext.https.any.js
    • M third_party/blink/web_tests/external/wpt/webnn/validation_tests/destroyGraph.https.any.js
    • M third_party/blink/web_tests/external/wpt/webnn/validation_tests/pooling-and-reduction-keep-dims.https.any.js
    • M third_party/blink/web_tests/virtual/webnn-service-on-cpu/external/wpt/webnn/idlharness.https.any-expected.txt
    • M third_party/blink/web_tests/virtual/webnn-service-on-cpu/external/wpt/webnn/idlharness.https.any.worker-expected.txt
    • M tools/metrics/histograms/metadata/webnn/histograms.xml
    Change size: XL
    Delta: 38 files changed, 189 insertions(+), 1829 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Alex Gough, +1 by Phillis Tang, +1 by Weizhong Xia, +1 by ningxin hu
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
    Gerrit-Change-Number: 5874875
    Gerrit-PatchSet: 9
    Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
    Gerrit-Reviewer: Weizhong Xia <weiz...@google.com>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
    open
    diffy
    satisfied_requirement

    Blink W3C Test Autoroller (Gerrit)

    unread,
    Nov 13, 2024, 2:23:40 AMNov 13
    to Austin Sullivan, Chromium LUCI CQ, ningxin hu, Weizhong Xia, Alex Gough, Phillis Tang, Reilly Grant, AyeAye, Tricium, Feng Dai, Bryan Bernhart, Mingming1 Xu, Chromium Metrics Reviews, chromium...@chromium.org, Kentaro Hara, Jiewei Qian, blink-revie...@chromium.org, asvitkine...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, mac-r...@chromium.org

    Message from Blink W3C Test Autoroller

    The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/49135

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id115f97edd78205c587b6920de4c21fa83961191
    Gerrit-Change-Number: 5874875
    Gerrit-PatchSet: 9
    Gerrit-Owner: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Austin Sullivan <asu...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Phillis Tang <phi...@chromium.org>
    Gerrit-Reviewer: Weizhong Xia <weiz...@google.com>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
    Gerrit-CC: Bryan Bernhart <bryan.b...@intel.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Feng Dai <feng...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Mingming1 Xu <mingmi...@intel.com>
    Gerrit-CC: Reilly Grant <rei...@chromium.org>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 07:23:30 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages