1
0
Fork 0
firefox/testing/web-platform/tests/webnn/validation_tests/elementwise-unary.https.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
648 B
JavaScript

// META: title=validation tests for WebNN API element-wise unary operations
// META: global=window
// META: variant=?cpu
// META: variant=?gpu
// META: variant=?npu
// META: script=../resources/utils_validation.js
'use strict';
const kElementwiseUnaryOperators = [
'abs', 'ceil', 'cos', 'erf', 'exp', 'floor', 'identity', 'log', 'neg',
'reciprocal', 'sign', 'sin', 'sqrt', 'tan'
];
kElementwiseUnaryOperators.forEach((operatorName) => {
validateInputFromAnotherBuilder(operatorName);
});
const label = 'elementwise_unary_op';
kElementwiseUnaryOperators.forEach((operatorName) => {
validateSingleInputOperation(operatorName, label);
});