onnxruntime/js/web/test/data/ops/leaky-relu.jsonc
Yulong Wang 4ebc9c3b5e
[JS] onnxruntime-web (#7394)
* add web

* add script and test

* fix lint

* add test/data/ops

* add test/data/node/ to gitignore

* modify scripts

* add onnxjs

* fix tests

* fix test-runner

* fix sourcemap

* fix onnxjs profiling

* update test list

* update README

* resolve comments

* set wasm as default backend

* rename package

* update copyright header

* do not use class "Buffer" in browser context

* revise readme
2021-04-27 00:04:25 -07:00

67 lines
1.3 KiB
Text

[
{
"name": "leakyRelu with no (default) attributes",
"operator": "LeakyRelu",
"attributes": [],
"cases": [
{
"name": "T[0]",
"inputs": [
{
"data": [-1.0, 0.0, 1.0, 1.0, -2.0],
"dims": [1, 4],
"type": "float32"
}
],
"outputs": [
{
"data": [-0.01, 0.0, 1.0, 1.0],
"dims": [1, 4],
"type": "float32"
}
]
}
]
},
{
"name": "leakyRelu with specified attributes",
"operator": "LeakyRelu",
"attributes": [{ "name": "alpha", "data": 0.05, "type": "float" }],
"cases": [
{
"name": "T[0]",
"inputs": [
{
"data": [-1.0, 0.0, 1.0, 1.0],
"dims": [2, 2],
"type": "float32"
}
],
"outputs": [
{
"data": [-0.05, 0.0, 1.0, 1.0],
"dims": [2, 2],
"type": "float32"
}
]
},
{
"name": "Scalar",
"inputs": [
{
"data": [-1.0],
"dims": [],
"type": "float32"
}
],
"outputs": [
{
"data": [-0.05],
"dims": [],
"type": "float32"
}
]
}
]
}
]