web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.93k stars 3.07k forks source link

webnn: implement opSupportLimits() #46914

Closed chromium-wpt-export-bot closed 3 months ago

chromium-wpt-export-bot commented 3 months ago

Implements the context.opSupportLimits with just 3 initial fields: input, constant, gather.

The support limits are an intersection between backend specific limits and generic ones. Now the backend specific type validation is moved to blink and returns as TypeError synchronously.

Error message helpers are moved to services/webnn/public/cpp/webnn_errors to avoid circular dependencies of mojom -> graph_validation_utils -> webnn_utils -> mojom.

TODOs:

Change-Id: I7b38226494b210cffca334fc63f3cc6b81198645 Bug: 345271830 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel, linux-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5608793 Reviewed-by: Austin Sullivan \asully@chromium.org Reviewed-by: Elly FJ \ellyjones@chromium.org Reviewed-by: Daniel Cheng \dcheng@chromium.org Commit-Queue: Phillis Tang \phillis@chromium.org Reviewed-by: ningxin hu \ningxin.hu@intel.com Cr-Commit-Position: refs/heads/main@{#1319927}