blob: 3d3a825f9c07065c3050b3933623d1a0c485d18f (
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
25
|
// META: title=test WebNN API element-wise logical operations
// META: global=window,dedicatedworker
// META: variant=?cpu
// META: variant=?gpu
// META: script=../resources/utils.js
// META: timeout=long
'use strict';
// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-logical
if (navigator.ml) {
testWebNNOperation(
[
'equal',
'greater',
'greaterOrEqual',
'lesser',
'lesserOrEqual',
],
buildOperationWithTwoInputs);
testWebNNOperation('logicalNot', buildOperationWithSingleInput);
} else {
test(() => assert_implements(navigator.ml, 'missing navigator.ml'));
}
|