// 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', 'exp', 'floor', 'log', 'neg', 'sin', 'tan'], | |
buildOperationWithSingleInput, 'gpu' | |
); |