Closed Bug 2073743 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62805 - webnn: Emit a single-input concat as an identity for LiteRT

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 62805 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62805
Details from upstream follow.

Ningxin Hu <ningxin.hu@intel.com> wrote:

webnn: Emit a single-input concat as an identity for LiteRT

A concat with one input is an identity, but it was still serialized as
CONCATENATION. That may cause ML Drift to emit a wrong shader and fail
to compile (GraphFloat32 path) or reject and fall back to CPU (IrModel
path).

Emit SerializeIdentityOperation instead. That helper elides an
intermediate identity without creating a TFLite operator, so make the
elision explicit rather than returning a null OperatorOffset: it now
returns base::expected\<std::optional\<OperatorOffset>, std::string>, the
optional is propagated through SerializeConcat,
SerializeElementWiseUnary and SerializeReverse, and SerializeOperation
appends an operator only when one was created.

Also add a WPT conformance test for it.

Bug: 562999372
Change-Id: I565124f75b42813897052725e7ae4c123c82cfb3

Reviewed-on: https://chromium-review.googlesource.com/8422780
WPT-Export-Revision: 95f1090c10b130f015a2b0a71e18e623bbb1842d

Attached file Notable wpt changes —

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 327 tests

Status Summary

Firefox

OK : 3
FAIL: 3

Chrome

OK : 3
PASS: 147

Safari

OK : 3
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/434fcc24e793 https://hg.mozilla.org/integration/autoland/rev/a77c230dacc8 [wpt PR 62805] - webnn: Emit a single-input concat as an identity for LiteRT, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: