Skip to content

Commit

Permalink
Bug 1924933 [wpt PR 48637] - webnn: Make MLOperandDescriptor.shape a …
Browse files Browse the repository at this point in the history
…required dictionary member, a=testonly

Automatic update from web-platform-tests
webnn: Make MLOperandDescriptor.shape a required dictionary member

See webmachinelearning/webnn#758

Also removes the temporary support for passing "dimensions" which was
added in https://crrev.com/e7e99aa5

Bug: 365813262
Cq-Include-Trybots: luci.chromium.try​:mac14-blink-rel,win11-blink-rel
Change-Id: Ib714ae540da7fbd7d55365dc739bfb8dbf266406
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5850659
Reviewed-by: ningxin hu <[email protected]>
Commit-Queue: ningxin hu <[email protected]>
Auto-Submit: Austin Sullivan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369192}

--

wpt-commits: c2d015181a4956b2f91061595ec7da93823ec3ec
wpt-pr: 48637
  • Loading branch information
a-sully authored and moz-wptsync-bot committed Oct 18, 2024
1 parent 94e428b commit 4b13fb7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@

const tests = [
// Tests for constant(descriptor, bufferView)
{
name:
'[constant] Test building a 0-D scalar constant without presenting dimensions',
descriptor: {dataType: 'float32'},
bufferView: {type: Float32Array, byteLength: 1 * 4},
output: {dataType: 'float32', shape: []}
},
{
name:
'[constant] Test building a 0-D scalar constant with empty dimensions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
// Tests for input(name, descriptor)
const tests = [
{
testName:
'[input] Test building a 0-D scalar input without presenting dimensions',
name: 'input',
descriptor: {dataType: 'float32'},
output: {dataType: 'float32', shape: []},
},
{
testName: '[input] Test building a 0-D scalar input with empty dimensions',
testName: '[input] Test building a 0-D scalar input with empty shape',
name: 'input',
descriptor: {dataType: 'float32', shape: []},
output: {dataType: 'float32', shape: []},
Expand Down

0 comments on commit 4b13fb7

Please sign in to comment.