summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/reduction.https.any.js
blob: 20bd74d8dee84bcf32ccf24362a73a6854cf9462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
);