Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 15 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webnn/validation_tests/elementwise-binary.https.any.html - WPT Dashboard Interop Dashboard
- /webnn/validation_tests/elementwise-binary.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=validation tests for WebNN API element-wise binary operations
// META: global=window,dedicatedworker
// META: script=../resources/utils_validation.js
'use strict';
const kElementwiseBinaryOperators = [
'add',
'sub',
'mul',
'div',
'max',
'min',
'pow',
];
kElementwiseBinaryOperators.forEach((operatorName) => {
validateTwoInputsOfSameDataType(operatorName);
validateTwoInputsBroadcastable(operatorName);
validateTwoInputsFromMultipleBuilders(operatorName);
});