github web-platform-tests/wpt merge_pr_46914

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
14 months ago

webnn: implement opSupportLimits()

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:

  • Add the rest of operators to opSupportLimits for all backends.
  • Add data type limits for graph output operands.
  • Update validation_tests to check opSupportLimits.

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}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.