tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 470c670e6275d856b8feda8804223590c3d8cd4e
parent b9c41b70daf9448d309ea78f8f5d2a9cb22d97b8
Author: junwei <junwei.fu@intel.com>
Date:   Tue, 21 Oct 2025 10:29:28 +0000

Bug 1994211 [wpt PR 55411] - Reland "webnn: Enable kokoro_82m_v1_fp16 model on TFLite backend", a=testonly

Automatic update from web-platform-tests
Reland "webnn: Enable kokoro_82m_v1_fp16 model on TFLite backend"

This is a reland of commit I33eae7f3e81e8f2efac0cbe49627acabf58bed97

This reland updates baseline on mac platform for failed test
https://ci.chromium.org/b/8701302412868775361.

Original change's description:
> webnn: Enable kokoro_82m_v1_fp16 model on TFLite backend
>
> The squeeze[1] will output {640} shape tensor if batchSize is 1, the
> output tensor will matmul  tensor {640, 256}, but the a and b operand
> of WebNN matmul[2] are at least 2-D, so remove specific size 1
> dimensions at 0 axis with squeeze_dims option.
>
> [1] https://source.chromium.org/chromium/chromium/src/+/main:services/webnn/tflite/graph_builder_tflite.cc;l=5699?q=SerializeSubGraphSliceSqueeze&ss=chromium%2Fchromium%2Fsrc
> [2] https://www.w3.org/TR/webnn/#api-mlgraphbuilder-matmul
>
> Bug: 446545294
> Change-Id: I33eae7f3e81e8f2efac0cbe49627acabf58bed97
> Reviewed-on: https://chromium-> review.googlesource.com/c/chromium/src/+/6993849
> Reviewed-by: ningxin hu <ningxin.hu@intel.com>
> Commit-Queue: Junwei Fu <junwei.fu@intel.com>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1528547}

Bug: 446545294
Change-Id: I161d2dad26fb6c9671ca08ab0b3614e5128664c2
Include-Ci-Only-Tests: chromium.mac:mac14-arm64-rel-tests|blink_wpt_tests
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7034401
Commit-Queue: Phillis Tang <phillis@chromium.org>
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Reviewed-by: Phillis Tang <phillis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1530443}

--

wpt-commits: ddd064e2a13c6e7e70c58039dbda6f0c885d4c8e
wpt-pr: 55411

Diffstat:
Mtesting/web-platform/tests/webnn/conformance_tests/lstm.https.any.js | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/webnn/conformance_tests/lstm.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/lstm.https.any.js @@ -776,6 +776,71 @@ const lstmTests = [ } }, { + 'name': + "lstm float32 tensors steps=2, batchSize=1 with options.bias, options.recurrentBias, options.activations=['relu', 'relu', 'relu'] and options.direction='backward'", + 'graph': { + 'inputs': { + 'lstmInput': { + 'data': [1, 2, 2, 1], + 'descriptor': {shape: [2, 1, 2], dataType: 'float32'} + }, + 'lstmWeight': { + 'data': [1, -1, 2, -2, 1, -1, 2, -2, 1, -1, 2, -2, 1, -1, 2, -2], + 'descriptor': {shape: [1, 8, 2], dataType: 'float32'}, + 'constant': true + }, + 'lstmRecurrentWeight': { + 'data': [ + 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, + 0.1, 0.1, 0.1 + ], + 'descriptor': {shape: [1, 8, 2], dataType: 'float32'}, + 'constant': true + }, + 'lstmBias': { + 'data': [1, 2, 1, 2, 1, 2, 1, 2], + 'descriptor': {shape: [1, 8], dataType: 'float32'}, + 'constant': true + }, + 'lstmRecurrentBias': { + 'data': [1, 2, 1, 2, 1, 2, 1, 2], + 'descriptor': {shape: [1, 8], dataType: 'float32'}, + 'constant': true + } + }, + 'operators': [{ + 'name': 'lstm', + 'arguments': [ + {'input': 'lstmInput'}, {'weight': 'lstmWeight'}, + {'recurrentWeight': 'lstmRecurrentWeight'}, {'steps': 2}, + {'hiddenSize': 2}, { + 'options': { + 'bias': 'lstmBias', + 'recurrentBias': 'lstmRecurrentBias', + 'direction': 'backward', + 'activations': ['relu', 'relu', 'relu'] + } + } + ], + 'outputs': ['lstmOutput1', 'lstmOutput2'] + }], + 'expectedOutputs': { + 'lstmOutput1': { + 'data': [ + 21955.08984375, 43092.29296875 + ], + 'descriptor': {shape: [1, 1, 2], dataType: 'float32'} + }, + 'lstmOutput2': { + 'data': [ + 867.7901000976562, 1638.4901123046875 + ], + 'descriptor': {shape: [1, 1, 2], dataType: 'float32'} + } + } + } + }, + { 'name': 'lstm float32 tensors steps=2 with all options', 'graph': { 'inputs': {