Bug 1924933 [wpt PR 48637] - webnn: Make MLOperandDescriptor.shape a required dictionary member, a=testonly

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

See https://github.com/webmachinelearning/webnn/issues/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 <ningxin.hu@intel.com>
Commit-Queue: ningxin hu <ningxin.hu@intel.com>
Auto-Submit: Austin Sullivan <asully@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1369192}

--

wpt-commits: c2d015181a4956b2f91061595ec7da93823ec3ec
wpt-pr: 48637
This commit is contained in:
Austin Sullivan 2024-10-16 22:18:35 +00:00 committed by moz-wptsync-bot
parent 0149807b85
commit e3b086be93
2 changed files with 1 additions and 15 deletions

View File

@ -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',

View File

@ -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: []},