Skip to content

Commit

Permalink
Bug 1864594 [wpt PR 43140] - WebNN: Support 0-D scalars, a=testonly
Browse files Browse the repository at this point in the history
Automatic update from web-platform-tests
WebNN: Support 0-D scalars

This CL fixes the WebNN spec and implementation issue [1] and allows to
present a 0-D scalar operand by empty dimensions.

This CL also adds test cases for MLGraphBuilder, XNNPACK backend, WebNN
service and DirectML backend for 0-D scalar operand.

[1]: webmachinelearning/webnn#390

Bug: 1498803, 1273291
Change-Id: Ic30602d6a1cdbe38ca3d384ffb7d8fe053b0a5a7
Cq-Include-Trybots: luci.chromium.try​:win11-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5029273
Reviewed-by: Jiewei Qian <qjwchromium.org>
Reviewed-by: Rafael Cintron <rafael.cintronmicrosoft.com>
Commit-Queue: ningxin hu <ningxin.huintel.com>
Reviewed-by: Weizhong Xia <weizhonggoogle.com>
Cr-Commit-Position: refs/heads/main{#1225264}

--

wpt-commits: 9a15f9f5814ac064c27ec9089acda4028b2518f8
wpt-pr: 43140

UltraBlame original commit: 7d5c3104db5385083454b56cf36201a8278bb1cc
  • Loading branch information
marco-c committed Nov 30, 2023
1 parent 86e0d67 commit 6f11fac
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions testing/web-platform/tests/webnn/resources/test_data/pow.json
Original file line number Diff line number Diff line change
Expand Up @@ -1665,10 +1665,10 @@ base
tensor
and
broadcastable
1D
0D
integer
exponent
tensor
scalar
"
"
inputs
Expand Down Expand Up @@ -1799,7 +1799,6 @@ shape
"
:
[
1
]
"
data
Expand Down Expand Up @@ -1951,10 +1950,10 @@ base
tensor
and
broadcastable
1D
0D
integer
exponent
tensor
scalar
"
"
inputs
Expand Down Expand Up @@ -2072,7 +2071,6 @@ shape
"
:
[
1
]
"
data
Expand Down

0 comments on commit 6f11fac

Please sign in to comment.