[wpt-sync] Sync PR 62805 - webnn: Emit a single-input concat as an identity for LiteRT
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox158 fixed)
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
149.04 KB,
text/plain
|
Details |
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: I565124f75b42813897052725e7ae4c123c82cfb3Reviewed-on: https://chromium-review.googlesource.com/8422780
WPT-Export-Revision: 95f1090c10b130f015a2b0a71e18e623bbb1842d
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=94464
| Assignee | ||
Comment 2•2 months ago
|
||
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)
Comment 4•2 months ago
|
||
| bugherder | ||
Description
•