Skip to content

Commit

Permalink
[webnn] Add tests for WebNN API constant (fillSequence) (#43801)
Browse files Browse the repository at this point in the history
* [webnn] Add tests for WebNN API constant (fillSequence)

* [webnn] Update test data with negative start

* [webnn] Update test data for integer test cases

* [webnn] Add a test with negative integer step
  • Loading branch information
BruceDai authored Feb 18, 2024
1 parent 504dbb9 commit 155f94a
Show file tree
Hide file tree
Showing 4 changed files with 782 additions and 0 deletions.
10 changes: 10 additions & 0 deletions webnn/constant.https.any.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// META: title=test WebNN API constant
// META: global=window,dedicatedworker
// META: script=./resources/utils.js
// META: timeout=long

'use strict';

// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-constant-range

testWebNNOperation('constant', buildConstantRange);
10 changes: 10 additions & 0 deletions webnn/gpu/constant.https.any.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// META: title=test WebNN API constant
// META: global=window,dedicatedworker
// META: script=../resources/utils.js
// META: timeout=long

'use strict';

// https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-constant-range

testWebNNOperation('constant', buildConstantRange, 'gpu');
Loading

0 comments on commit 155f94a

Please sign in to comment.