blob: 5a09b05c7dc1bafc125be7e46297422131c1fabc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// META: title=test WebNN API buffer 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-mlbuffer
if (navigator.ml) {
testCreateWebNNBuffer('create', 4);
testDestroyWebNNBuffer('destroyTwice');
testReadWebNNBuffer('read');
testWriteWebNNBuffer('write');
} else {
test(() => assert_implements(navigator.ml, 'missing navigator.ml'));
}
|