-
Notifications
You must be signed in to change notification settings - Fork 48
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
Drop the support of synchronous execution #548
Conversation
The bots seem to be having issues, but I've locally verified that there are no Bikeshed warnings or errors. |
PR preview failed, just wanted to call attention to common usage of "execute graph" and other algorithms from the "Synchronous execution" section also in asynchronous execution. These should be moved or merged into the async execution steps. It's hard to see from the diff if that was the case. |
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.
Thanks @huningxin for preparing this PR swiftly to allow this change get into the next spec milestone.
And thanks @inexorabletash for your careful review.
@wchao1115 do you want to signal your +1 for this synchronous execution removal?
See webmachinelearning/webnn#548 Deletes all sync methods and simplifies the names of all "Async" methods - e.g. BuildAsync() -> Build() Bug: 40283536, 41481333 Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108
See webmachinelearning/webnn#548 Deletes all sync methods and simplifies the names of all "Async" methods - e.g. BuildAsync() -> Build() Bug: 40283536, 41481333 Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108
See webmachinelearning/webnn#548 Deletes all sync methods and simplifies the names of all "Async" methods - e.g. BuildAsync() -> Build() Bug: 40283536, 41481333 Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108
See webmachinelearning/webnn#548 Deletes all sync methods and simplifies the names of all "Async" methods - e.g. BuildAsync() -> Build() Bug: 40283536, 41481333 Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108
Remove the definition and algorithm steps for - ML.createContextSync() - MLGraphBuilder.buildSync() - MLContext.computeSync() Fix webmachinelearning#531
By merging, we're checking some boxes:
|
SHA: 79baee9 Reason: push, by anssiko Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
See webmachinelearning/webnn#548 Deletes all sync methods and simplifies the names of all "Async" methods - e.g. BuildAsync() -> Build() Bug: 40283536, 41481333 Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108
See webmachinelearning/webnn#548 Deletes all sync methods and simplifies the names of all "Async" methods - e.g. BuildAsync() -> Build() Bug: 40283536, 41481333 Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 Commit-Queue: Austin Sullivan <asully@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Reviewed-by: ningxin hu <ningxin.hu@intel.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1261223}
This reverts commit a3e84dd. Reason for revert: One Win 11 , blink_wpt_tests are failing consistently since https://ci.chromium.org/ui/p/chromium/builders/ci/Win11%20Tests%20x64/19453/blamelist This CL seems to be a candidate for causing this. Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Bug: 40283536, 41481333 Change-Id: Ib59afe686ae8e18bcad63ff7d15816cd93090f00 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5301381 Owners-Override: Markus Heintz <markusheintz@google.com> Auto-Submit: Markus Heintz <markusheintz@google.com> Commit-Queue: Markus Heintz <markusheintz@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1261576}
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Bug: 40283536, 41481333 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5303774 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Austin Sullivan <asully@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1262043}
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5303774 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Austin Sullivan <asully@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1262043} Co-authored-by: Austin Sullivan <asully@chromium.org>
This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5303774 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Austin Sullivan <asully@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1262043} Co-authored-by: Austin Sullivan <asully@chromium.org>
…estonly Automatic update from web-platform-tests Reland "webnn: Remove sync methods" (#44626) This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5303774 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Austin Sullivan <asully@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1262043} Co-authored-by: Austin Sullivan <asully@chromium.org> -- wpt-commits: 0e308a624676bfea808af80e9a6378ec94dce931 wpt-pr: 44626
…estonly Automatic update from web-platform-tests Reland "webnn: Remove sync methods" (#44626) This is a reland of commit a3e84dde09e099bebbe4793ffaa70679168130d6 This CL contains a few additional changes: - Enables the async APIs on workers, which was causing bots to fail since workers could not call createContext() - Rebaselines WPTs accordingly - Updates the WPT expectations for the webnn-service-enabled virtual test suite Original change's description: > webnn: Remove sync methods > > See webmachinelearning/webnn#548 > > Deletes all sync methods and simplifies the names of all "Async" > methods - e.g. BuildAsync() -> Build() > > Bug: 40283536, 41481333 > Change-Id: I3b38d987cb4641ea41ab9a974c46dcba16d5c108 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292884 > Commit-Queue: Austin Sullivan <asully@chromium.org> > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Reviewed-by: ningxin hu <ningxin.hu@intel.com> > Reviewed-by: Alex Gough <ajgo@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1261223} Cq-Include-Trybots: luci.chromium.try:win11-x64-fyi-rel Bug: 40283536, 41481333, 41485898 Change-Id: Iffcb922b8175a7181deba1f4c2faa953010ae5c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5303774 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Austin Sullivan <asully@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1262043} Co-authored-by: Austin Sullivan <asully@chromium.org> -- wpt-commits: 0e308a624676bfea808af80e9a6378ec94dce931 wpt-pr: 44626
Remove the definition and algorithm steps for
This PR also removes the synchronous execution description from Programming Model section.
The previous algorithm steps of
MLGraphBuilder.build()
depends onMLGraphBuilder.buildSync()
. The algorithm steps ofMLGraphBuilder.buildSync()
have issue tracked by #457. That is left to a separate PR. This PR just merges the algorithm steps ofMLGraphBuilder.buildSync()
intoMLGraphBuilder.build()
with some modifications:Fix #531
@wchao1115 @anssiko @inexorabletash , PTAL. Thanks!
Preview | Diff