summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/conformance_tests/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webnn/conformance_tests/gpu')
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/arg_min_max.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/batch_normalization.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/buffer.https.any.js12
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/cast.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/clamp.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/concat.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/constant.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/conv2d.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/conv_transpose2d.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_binary.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_logical.https.any.js20
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_unary.https.any.js13
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/elu.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/expand.https.any.js11
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/gather.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/gemm.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/hard_sigmoid.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/hard_swish.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/instance_normalization.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/layer_normalization.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/leaky_relu.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/linear.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/matmul.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/pad.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/pooling.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/prelu.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/reduction.https.any.js24
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/relu.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/resample2d.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/reshape.https.any.js11
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/sigmoid.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/slice.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/softmax.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/softplus.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/softsign.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/split.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/tanh.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/transpose.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/triangular.https.any.js10
-rw-r--r--testing/web-platform/tests/webnn/conformance_tests/gpu/where.https.any.js10
40 files changed, 431 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/arg_min_max.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/arg_min_max.https.any.js
new file mode 100644
index 0000000000..c700ee5cad
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/arg_min_max.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API argMin/Max operations
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-argminmax
+
+testWebNNOperation(['argMin', 'argMax'], buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/batch_normalization.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/batch_normalization.https.any.js
new file mode 100644
index 0000000000..534cdf6365
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/batch_normalization.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API batchNormalization operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-batchnorm
+
+testWebNNOperation('batchNormalization', buildBatchNorm, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/buffer.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/buffer.https.any.js
new file mode 100644
index 0000000000..66bba9ef4a
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/buffer.https.any.js
@@ -0,0 +1,12 @@
+// META: title=test WebNN API buffer operations
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlbuffer
+
+testCreateWebNNBuffer("create", 4, 'gpu');
+
+testDestroyWebNNBuffer("destroyTwice", 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/cast.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/cast.https.any.js
new file mode 100644
index 0000000000..e4309ffd8e
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/cast.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API cast operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-cast
+
+testWebNNOperation('cast', buildCast, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/clamp.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/clamp.https.any.js
new file mode 100644
index 0000000000..9b3f93ecc7
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/clamp.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API clamp operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-clamp
+
+testWebNNOperation('clamp', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/concat.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/concat.https.any.js
new file mode 100644
index 0000000000..c0cfb8626b
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/concat.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API concat operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-concat
+
+testWebNNOperation('concat', buildConcat, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/constant.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/constant.https.any.js
new file mode 100644
index 0000000000..77b4d889a2
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/constant.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API constant
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-constant-range
+
+testWebNNOperation('constant', buildConstantRange, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/conv2d.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/conv2d.https.any.js
new file mode 100644
index 0000000000..770540abd8
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/conv2d.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API conv2d operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-conv2d
+
+testWebNNOperation('conv2d', buildConv2d, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/conv_transpose2d.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/conv_transpose2d.https.any.js
new file mode 100644
index 0000000000..08c441b5b4
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/conv_transpose2d.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API convTranspose2d operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-convtranspose2d
+
+testWebNNOperation('convTranspose2d', buildConvTranspose2d, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_binary.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_binary.https.any.js
new file mode 100644
index 0000000000..8b9fa486f8
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_binary.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API element-wise binary operations
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-binary
+
+testWebNNOperation(['add', 'sub', 'mul', 'div', 'max', 'min', 'pow'], buildOperationWithTwoInputs, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_logical.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_logical.https.any.js
new file mode 100644
index 0000000000..70a887a147
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_logical.https.any.js
@@ -0,0 +1,20 @@
+// META: title=test WebNN API element-wise logical operations
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-logical
+
+testWebNNOperation(
+ [
+ 'equal',
+ 'greater',
+ 'greaterOrEqual',
+ 'lesser',
+ 'lesserOrEqual',
+ ],
+ buildOperationWithTwoInputs, 'gpu'
+);
+testWebNNOperation('logicalNot', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_unary.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_unary.https.any.js
new file mode 100644
index 0000000000..8871129311
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/elementwise_unary.https.any.js
@@ -0,0 +1,13 @@
+// META: title=test WebNN API element-wise unary operations
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-unary
+
+testWebNNOperation(
+ ['abs', 'ceil', 'cos', 'erf', 'exp', 'floor', 'identity', 'log', 'neg', 'reciprocal', 'sin', 'sqrt', 'tan'],
+ buildOperationWithSingleInput, 'gpu'
+); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/elu.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/elu.https.any.js
new file mode 100644
index 0000000000..db14442641
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/elu.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API elu operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-elu
+
+testWebNNOperation('elu', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/expand.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/expand.https.any.js
new file mode 100644
index 0000000000..f46f463781
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/expand.https.any.js
@@ -0,0 +1,11 @@
+// META: title=test WebNN API expand operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-expand
+
+// reuse buildReshape method
+testWebNNOperation('expand', buildReshape, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/gather.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/gather.https.any.js
new file mode 100644
index 0000000000..8e457192d8
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/gather.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API gather operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-gather
+
+testWebNNOperation('gather', buildOperationWithTwoInputs, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/gemm.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/gemm.https.any.js
new file mode 100644
index 0000000000..f288c31bed
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/gemm.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API gemm operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-gemm
+
+testWebNNOperation('gemm', buildGemm, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/hard_sigmoid.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/hard_sigmoid.https.any.js
new file mode 100644
index 0000000000..d40e42a211
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/hard_sigmoid.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API hardSigmoid operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-hard-sigmoid
+
+testWebNNOperation('hardSigmoid', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/hard_swish.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/hard_swish.https.any.js
new file mode 100644
index 0000000000..031e65ee16
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/hard_swish.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API tanh operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-hard-swish
+
+testWebNNOperation('hardSwish', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/instance_normalization.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/instance_normalization.https.any.js
new file mode 100644
index 0000000000..ecfaac71ee
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/instance_normalization.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API instanceNormalization operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-instancenorm
+
+testWebNNOperation('instanceNormalization', buildLayerNorm, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/layer_normalization.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/layer_normalization.https.any.js
new file mode 100644
index 0000000000..0e4f6caebf
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/layer_normalization.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API layerNormalization operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-layernorm
+
+testWebNNOperation('layerNormalization', buildLayerNorm, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/leaky_relu.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/leaky_relu.https.any.js
new file mode 100644
index 0000000000..9fab2353b9
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/leaky_relu.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API leakyRelu operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-leakyrelu
+
+testWebNNOperation('leakyRelu', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/linear.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/linear.https.any.js
new file mode 100644
index 0000000000..ccec2c3eac
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/linear.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API linear operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-linear
+
+testWebNNOperation('linear', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/matmul.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/matmul.https.any.js
new file mode 100644
index 0000000000..635ce84ac6
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/matmul.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API matmul operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-matmul
+
+testWebNNOperation('matmul', buildOperationWithTwoInputs, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/pad.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/pad.https.any.js
new file mode 100644
index 0000000000..f313e2c9f9
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/pad.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API pad operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-pad
+
+testWebNNOperation('pad', buildPad, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/pooling.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/pooling.https.any.js
new file mode 100644
index 0000000000..837bca2c71
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/pooling.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API pooling operations
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-pool2d
+
+testWebNNOperation(['averagePool2d', 'l2Pool2d', 'maxPool2d'], buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/prelu.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/prelu.https.any.js
new file mode 100644
index 0000000000..475cd9e5ce
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/prelu.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API prelu operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-prelu
+
+testWebNNOperation('prelu', buildOperationWithTwoInputs, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/reduction.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/reduction.https.any.js
new file mode 100644
index 0000000000..0f3cefa02e
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/reduction.https.any.js
@@ -0,0 +1,24 @@
+// META: title=test WebNN API reduction operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-reduce
+
+testWebNNOperation(
+ [
+ 'reduceL1',
+ 'reduceL2',
+ 'reduceLogSum',
+ 'reduceLogSumExp',
+ 'reduceMax',
+ 'reduceMean',
+ 'reduceMin',
+ 'reduceProduct',
+ 'reduceSum',
+ 'reduceSumSquare',
+ ],
+ buildOperationWithSingleInput, 'gpu'
+); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/relu.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/relu.https.any.js
new file mode 100644
index 0000000000..d1a35367df
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/relu.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API relu operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-relu
+
+testWebNNOperation('relu', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/resample2d.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/resample2d.https.any.js
new file mode 100644
index 0000000000..dd8e441946
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/resample2d.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API resample2d operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-resample2d-method
+
+testWebNNOperation('resample2d', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/reshape.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/reshape.https.any.js
new file mode 100644
index 0000000000..b0217d2e67
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/reshape.https.any.js
@@ -0,0 +1,11 @@
+// META: title=test WebNN API reshape operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-reshape
+
+testWebNNOperation('reshape', buildReshape, 'gpu');
+
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/sigmoid.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/sigmoid.https.any.js
new file mode 100644
index 0000000000..26116c0ff9
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/sigmoid.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API sigmoid operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-sigmoid
+
+testWebNNOperation('sigmoid', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/slice.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/slice.https.any.js
new file mode 100644
index 0000000000..1710c79a9c
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/slice.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API slice operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-slice
+
+testWebNNOperation('slice', buildSlice, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/softmax.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/softmax.https.any.js
new file mode 100644
index 0000000000..9eaffe2beb
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/softmax.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API softmax operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-softmax
+
+testWebNNOperation('softmax', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/softplus.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/softplus.https.any.js
new file mode 100644
index 0000000000..5f06846113
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/softplus.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API softplus operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-softplus
+
+testWebNNOperation('softplus', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/softsign.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/softsign.https.any.js
new file mode 100644
index 0000000000..eac0b7ec40
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/softsign.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API softsign operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-softsign
+
+testWebNNOperation('softsign', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/split.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/split.https.any.js
new file mode 100644
index 0000000000..3b0aafd787
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/split.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API split operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-split
+
+testWebNNOperation('split', buildSplit, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/tanh.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/tanh.https.any.js
new file mode 100644
index 0000000000..3029f4865a
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/tanh.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API tanh operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-tanh
+
+testWebNNOperation('tanh', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/transpose.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/transpose.https.any.js
new file mode 100644
index 0000000000..295ef43ec1
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/transpose.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API transpose operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-transpose
+
+testWebNNOperation('transpose', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/triangular.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/triangular.https.any.js
new file mode 100644
index 0000000000..3e1b0d5ab1
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/triangular.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API triangular operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-triangular
+
+testWebNNOperation('triangular', buildOperationWithSingleInput, 'gpu'); \ No newline at end of file
diff --git a/testing/web-platform/tests/webnn/conformance_tests/gpu/where.https.any.js b/testing/web-platform/tests/webnn/conformance_tests/gpu/where.https.any.js
new file mode 100644
index 0000000000..49c6cbd4e3
--- /dev/null
+++ b/testing/web-platform/tests/webnn/conformance_tests/gpu/where.https.any.js
@@ -0,0 +1,10 @@
+// META: title=test WebNN API where operation
+// META: global=window,dedicatedworker
+// META: script=../../resources/utils.js
+// META: timeout=long
+
+'use strict';
+
+// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-where
+
+testWebNNOperation('where', buildWhere, 'gpu'); \ No newline at end of file