aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/tests/webnn/conformance_tests/tile.https.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/tests/webnn/conformance_tests/tile.https.any.js')
-rw-r--r--tests/wpt/tests/webnn/conformance_tests/tile.https.any.js51
1 files changed, 50 insertions, 1 deletions
diff --git a/tests/wpt/tests/webnn/conformance_tests/tile.https.any.js b/tests/wpt/tests/webnn/conformance_tests/tile.https.any.js
index 822944b3e99..29a24871816 100644
--- a/tests/wpt/tests/webnn/conformance_tests/tile.https.any.js
+++ b/tests/wpt/tests/webnn/conformance_tests/tile.https.any.js
@@ -17,7 +17,7 @@
// MLOperatorOptions options = {});
-const getTilePrecisionTolerance = (graphResources) => {
+const getTilePrecisionTolerance = () => {
return {metricType: 'ULP', value: 0};
};
@@ -46,6 +46,55 @@ const tileTests = [
}
},
{
+ 'name': 'tile float16 1D constant tensor',
+ 'graph': {
+ 'inputs': {
+ 'tileInput': {
+ 'data': [1, 2, 3, 4],
+ 'descriptor': {shape: [4], dataType: 'float16'},
+ 'constant': true
+ }
+ },
+ 'operators': [{
+ 'name': 'tile',
+ 'arguments': [{'input': 'tileInput'}, {'repetitions': [2]}],
+ 'outputs': 'tileOutput'
+ }],
+ 'expectedOutputs': {
+ 'tileOutput': {
+ 'data': [1, 2, 3, 4, 1, 2, 3, 4],
+ 'descriptor': {shape: [8], dataType: 'float16'}
+ }
+ }
+ }
+ },
+ {
+ 'name': 'tile float16 2D tensor',
+ 'graph': {
+ 'inputs': {
+ 'tileInput': {
+ 'data': [1, 2, 3, 4],
+ 'descriptor': {shape: [2, 2], dataType: 'float16'},
+ 'constant': true
+ }
+ },
+ 'operators': [{
+ 'name': 'tile',
+ 'arguments': [{'input': 'tileInput'}, {'repetitions': [2, 3]}],
+ 'outputs': 'tileOutput'
+ }],
+ 'expectedOutputs': {
+ 'tileOutput': {
+ 'data': [
+ 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4,
+ 1, 2, 1, 2, 1, 2, 3, 4, 3, 4, 3, 4
+ ],
+ 'descriptor': {shape: [4, 6], dataType: 'float16'}
+ }
+ }
+ }
+ },
+ {
'name': 'tile uint32 2D tensor',
'graph': {
'inputs': {