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.
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}