Skip to content

Commit 282f63d

Browse files
committed
Bug 1935024 [wpt PR 49504] - webnn: Fix WPT data type compatibility matching for constants, a=testonly
Automatic update from web-platform-tests webnn: Fix WPT data type compatibility matching for constants The existing code assumes that the supported data types for the input() and constant() methods are the same. This is not true on some platforms Cq-Include-Trybots: luci.chromium.try​:win11-blink-rel,mac14-blink-rel,mac14.arm64-blink-rel Change-Id: Id0365b623500f9bdb815e3332c3e9cfe4689bf11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064547 Auto-Submit: Austin Sullivan <asullychromium.org> Commit-Queue: Phillis Tang <phillischromium.org> Reviewed-by: Phillis Tang <phillischromium.org> Cr-Commit-Position: refs/heads/main{#1391227} -- wpt-commits: 48178346fe87222856812842fb7af7b01baa1530 wpt-pr: 49504 UltraBlame original commit: 2675ff0492bd5c0d1a345e0c187fef2b52352cd2
1 parent 423c812 commit 282f63d

File tree

1 file changed

+29
-18
lines changed
  • testing/web-platform/tests/webnn/resources

1 file changed

+29
-18
lines changed

testing/web-platform/tests/webnn/resources/utils.js

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,6 +3474,33 @@ descriptor
34743474
.
34753475
dataType
34763476
;
3477+
const
3478+
supportedDataTypes
3479+
=
3480+
resources
3481+
.
3482+
constant
3483+
?
3484+
context
3485+
.
3486+
opSupportLimits
3487+
(
3488+
)
3489+
.
3490+
constant
3491+
.
3492+
dataTypes
3493+
:
3494+
context
3495+
.
3496+
opSupportLimits
3497+
(
3498+
)
3499+
.
3500+
input
3501+
.
3502+
dataTypes
3503+
;
34773504
/
34783505
/
34793506
If
@@ -3508,15 +3535,7 @@ type
35083535
if
35093536
(
35103537
!
3511-
context
3512-
.
3513-
opSupportLimits
3514-
(
3515-
)
3516-
.
3517-
input
3518-
.
3519-
dataTypes
3538+
supportedDataTypes
35203539
.
35213540
includes
35223541
(
@@ -3530,15 +3549,7 @@ compatibleType
35303549
findCompatibleType
35313550
(
35323551
dataType
3533-
context
3534-
.
3535-
opSupportLimits
3536-
(
3537-
)
3538-
.
3539-
input
3540-
.
3541-
dataTypes
3552+
supportedDataTypes
35423553
)
35433554
;
35443555
if

0 commit comments

Comments
 (0)