summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/elementwise_unary.https.any.js
blob: 4cdfee5bcb07f8ab011460f23564e081372267ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
);