Skip to content
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

webnn: Use TFLite for CPU execution on Linux #46213

Merged
merged 1 commit into from May 13, 2024

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 10, 2024

This CL primarily does two things:

  1. Use TFLite backend (instead of XNNPACK) on Linux for "cpu" contexts
  2. Refactor the existing Virtual Test Suite on Linux to run "cpu"
    tests now that the "gpu" workaround is no longer needed to target
    the TFLite backend

Note that - assuming TFLite-on-CPU behaves the same across platforms -
this "cpu" Virtual Test Suite and the corresponding expectations will
be re-used as other backends (or at least Windows) migrate "cpu"
context execution to TFLite in follow-up CLs

Before (on Linux):

  • using a "cpu" context targets the XNNPACK backend in the renderer
  • using a "gpu" context targets the TFLite backend in
    //services (which currently runs on CPU anyways)
    After (on Linux):
  • using either a "cpu" or "gpu" context targets the TFLite backend in
    //services

This opens the door for TFLite to truly target the GPU if instructed,
and gets us one step closer to removing the XNNPACK backend

Bug: 325612086
Change-Id: I421d97b7d91b604afbfb3c8aa71b55a5bc78bd6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5532576
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Austin Sullivan <asully@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Cr-Commit-Position: refs/heads/main@{#1300171}

@chromium-wpt-export-bot chromium-wpt-export-bot changed the title webnn: Use TFLite for CPU execution on Linux (duplicate) webnn: Use TFLite for CPU execution on Linux May 11, 2024
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-5532576 branch 6 times, most recently from 3dd0cc1 to ac91f48 Compare May 11, 2024 21:16
@chromium-wpt-export-bot chromium-wpt-export-bot marked this pull request as ready for review May 13, 2024 18:39
This CL primarily does two things:
1. Use TFLite backend (instead of XNNPACK) on Linux for "cpu" contexts
2. Refactor the existing Virtual Test Suite on Linux to run "cpu"
   tests now that the "gpu" workaround is no longer needed to target
   the TFLite backend

Note that - assuming TFLite-on-CPU behaves the same across platforms -
this "cpu" Virtual Test Suite and the corresponding expectations will
be re-used as other backends (or at least Windows) migrate "cpu"
context execution to TFLite in follow-up CLs

Before (on Linux):
  - using a "cpu" context targets the XNNPACK backend in the renderer
  - using a "gpu" context targets the TFLite backend in
    //services (which currently runs on CPU anyways)
After (on Linux):
  - using either a "cpu" or "gpu" context targets the TFLite backend in
    //services

This opens the door for TFLite to truly target the GPU if instructed,
and gets us one step closer to removing the XNNPACK backend

Bug: 325612086
Change-Id: I421d97b7d91b604afbfb3c8aa71b55a5bc78bd6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5532576
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Austin Sullivan <asully@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Cr-Commit-Position: refs/heads/main@{#1300171}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 38a6c3e into master May 13, 2024
15 of 17 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5532576 branch May 13, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants