webnn: Support scalar MLTensors on CoreML
Previously, passing a scalar MLTensor to dispatch() would hit a CHECK
A scalar MLTensor is now represented as a one-element MLMultiArray,
which matches what we do on Windows
Bug: 367755362
Change-Id: I72c1bf3abfc69de038554e69b4b8990e361d1bfe
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5950527
Commit-Queue: Weizhong Xia weizhong@google.com
Reviewed-by: Weizhong Xia weizhong@google.com
Reviewed-by: Phillis Tang phillis@chromium.org
Auto-Submit: Austin Sullivan asully@chromium.org
Cr-Commit-Position: refs/heads/main@{#1372102}