[wpt-sync] Sync PR 54146 - [WebNN] Save NaN instead of 0 for MLNumber when initialized from NaN.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox143 fixed)
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
184.12 KB,
text/plain
|
Details |
Sync web-platform-tests PR 54146 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/54146
Details from upstream follow.
Wei Wang <wei4.wang@intel.com> wrote:
[WebNN] Save NaN instead of 0 for MLNumber when initialized from NaN.
This CL saves NaN instead of 0 for MLNumber when initialized from
NaN. The behavior on different backends and hardwares are completely
inconsistent when NaN is used for min_value or max_value of clamp.
So we normalize it with minValue:NaN coerced to -Infinity and
maxValue:NaN be coerced to Infinity.Bug: 335909582
Change-Id: I4c7467b573010f7804438dc1d2993e45594b0708
Reviewed-on: https://chromium-review.googlesource.com/6805191
WPT-Export-Revision: 9171b0aa0deae83b860f9131f823765c72d7e12b
| Assignee | ||
Comment 1•6 months ago
|
||
| Assignee | ||
Comment 2•6 months ago
|
||
| Assignee | ||
Comment 3•6 months ago
|
||
Comment 5•6 months ago
|
||
| bugherder | ||
Description
•