diff options
Diffstat (limited to 'tests/wpt/tests/webnn/conformance_tests/relu.https.any.js')
-rw-r--r-- | tests/wpt/tests/webnn/conformance_tests/relu.https.any.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/wpt/tests/webnn/conformance_tests/relu.https.any.js b/tests/wpt/tests/webnn/conformance_tests/relu.https.any.js index 63ef9fa9ff0..05e9e32bf85 100644 --- a/tests/wpt/tests/webnn/conformance_tests/relu.https.any.js +++ b/tests/wpt/tests/webnn/conformance_tests/relu.https.any.js @@ -636,6 +636,34 @@ const reluTests = [ } } }, + + // int64 tests + { + 'name': 'relu int64 4D tensor', + 'graph': { + 'inputs': { + 'reluInput': { + 'data': [ + // int64 range: [/* -(2**63) */ –9223372036854775808, + // /* 2**63 - 1 */ 92233720368547758087] + BigInt(-(2**63)) + 1n, -100n, 0n, 100n, BigInt(2**63) - 1n + ], + 'descriptor': {shape: [1, 1, 1, 5], dataType: 'int64'} + } + }, + 'operators': [{ + 'name': 'relu', + 'arguments': [{'input': 'reluInput'}], + 'outputs': 'reluOutput' + }], + 'expectedOutputs': { + 'reluOutput': { + 'data': [0n, 0n, 0n, 100n, BigInt(2**63) - 1n], + 'descriptor': {shape: [1, 1, 1, 5], dataType: 'int64'} + } + } + } + } ]; if (navigator.ml) { |