mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
7825509: webnn: Move LiteRT CPU inference from GPU to renderer process
This CL relocated LiteRT context creation into the renderer process via
the new generic webnn_context_provider_in_renderer, which is built under
WEBNN_TFLITE_IN_RENDERER on Linux. As a result, the arm32 renderer link
now drags in LiteRT's XNNPack delegate symbols (e.g.
TfLiteXNNPackDelegateOptionsDefault), so build_litert_with_xnnpack=false
must be set alongside the existing build_tflite_with_xnnpack=false.
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7825509
Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 6d2784c991)
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -149,9 +149,9 @@ jobs:
|
||||
run: |
|
||||
if [ "${{ inputs.target-arch }}" = "arm" ]; then
|
||||
if [ "${{ inputs.is-release }}" = true ]; then
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false symbol_level=1'
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false build_litert_with_xnnpack=false symbol_level=1'
|
||||
else
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false'
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false build_litert_with_xnnpack=false'
|
||||
fi
|
||||
elif [ "${{ inputs.target-arch }}" = "arm64" ]; then
|
||||
GN_EXTRA_ARGS='target_cpu="arm64" fatal_linker_warnings=false enable_linux_installer=false'
|
||||
|
||||
@@ -157,9 +157,9 @@ jobs:
|
||||
run: >
|
||||
if [ "${{ inputs.target-arch }}" = "arm" ]; then
|
||||
if [ "${{ inputs.is-release }}" = true ]; then
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false symbol_level=1'
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false build_litert_with_xnnpack=false symbol_level=1'
|
||||
else
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false'
|
||||
GN_EXTRA_ARGS='target_cpu="arm" build_tflite_with_xnnpack=false build_litert_with_xnnpack=false'
|
||||
fi
|
||||
elif [ "${{ inputs.target-arch }}" = "arm64" ]; then
|
||||
GN_EXTRA_ARGS='target_cpu="arm64" fatal_linker_warnings=false enable_linux_installer=false'
|
||||
|
||||
Reference in new issue
Block a user