mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1893558 [wpt PR 45922] - webnn: Enforce input data type constraints for conv2d, a=testonly
Automatic update from web-platform-tests webnn: Enforce input data type constraints for conv2d As specified in https://github.com/webmachinelearning/webnn/pull/646 Bug: 328567884 Change-Id: I620653f574303e6f5b18d3b540b647f07e0cf64c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5492307 Reviewed-by: ningxin hu <ningxin.hu@intel.com> Commit-Queue: Austin Sullivan <asully@chromium.org> Cr-Commit-Position: refs/heads/main@{#1293407} -- wpt-commits: 839bdcfea290fd869732772d922ed910efbf052c wpt-pr: 45922
This commit is contained in:
parent
19c5c87c0d
commit
3e7badec40
@ -210,6 +210,11 @@ const tests = [
|
||||
input: {dataType: 'float32', dimensions: [1, 5, 5]},
|
||||
filter: {dataType: 'float32', dimensions: [1, 2, 2, 1]},
|
||||
},
|
||||
{
|
||||
name: '[conv2d] Throw if the input data type is not floating point.',
|
||||
input: {dataType: 'int32', dimensions: [1, 1, 5, 5]},
|
||||
filter: {dataType: 'int32', dimensions: [1, 1, 2, 2]},
|
||||
},
|
||||
{
|
||||
name: '[conv2d] Throw if the filter is not a 4-D tensor.',
|
||||
input: {dataType: 'float32', dimensions: [1, 1, 5, 5]},
|
||||
|
@ -195,6 +195,12 @@ const tests = [
|
||||
input: {dataType: 'float32', dimensions: [1, 5, 5]},
|
||||
filter: {dataType: 'float32', dimensions: [1, 1, 2, 2]},
|
||||
},
|
||||
{
|
||||
name:
|
||||
'[convTranspose2d] Throw if the input data type is not floating point.',
|
||||
input: {dataType: 'int32', dimensions: [1, 1, 5, 5]},
|
||||
filter: {dataType: 'int32', dimensions: [1, 1, 2, 2]},
|
||||
},
|
||||
{
|
||||
name: '[convTranspose2d] Throw if the filter is not a 4-D tensor.',
|
||||
input: {dataType: 'float32', dimensions: [1, 1, 5, 5]},
|
||||
|
Loading…
Reference in New Issue
Block a user