From 63fe0aed6264ebdae051f99efdfd4ee1bb437449 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 22 Oct 2024 21:47:59 +0000 Subject: [PATCH] Bug 1924933 [wpt PR 48637] - webnn: Make MLOperandDescriptor.shape a required dictionary member, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: ningxin hu Auto-Submit: Austin Sullivan Cr-Commit-Position: refs/heads/main{#1369192} -- wpt-commits: c2d015181a4956b2f91061595ec7da93823ec3ec wpt-pr: 48637 UltraBlame original commit: 9f95e773e94fb574ef3183aeac32974ee03e0cd9 --- .../tests/webnn/validation_tests/constant.https.any.js | 7 ------- .../tests/webnn/validation_tests/input.https.any.js | 9 +-------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/testing/web-platform/tests/webnn/validation_tests/constant.https.any.js b/testing/web-platform/tests/webnn/validation_tests/constant.https.any.js index 55a7c79b571d4..cd712b87709c6 100644 --- a/testing/web-platform/tests/webnn/validation_tests/constant.https.any.js +++ b/testing/web-platform/tests/webnn/validation_tests/constant.https.any.js @@ -9,13 +9,6 @@ const tests = [ - { - 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', diff --git a/testing/web-platform/tests/webnn/validation_tests/input.https.any.js b/testing/web-platform/tests/webnn/validation_tests/input.https.any.js index c8505710048d2..c8fab3a364d1a 100644 --- a/testing/web-platform/tests/webnn/validation_tests/input.https.any.js +++ b/testing/web-platform/tests/webnn/validation_tests/input.https.any.js @@ -10,14 +10,7 @@ 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: []},