onnxruntime/js/web/test/data/ops/image-scaler.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

79 lines
1.8 KiB
Text

[
{
"name": "abs with no attributes",
"operator": "ImageScaler",
"attributes": [
{ "name": "bias", "data": [0.0, 0.0, 0.0], "type": "floats" },
{ "name": "scale", "data": 0.003921568859368563, "type": "float" }
],
"cases": [
{
"name": "T[1,2,3,4]",
"inputs": [
{
"data": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"dims": [1, 2, 3, 4],
"type": "float32"
}
],
"outputs": [
{
"data": [
0.0,
0.003921568859368563,
0.007843137718737125,
0.011764706578105688,
0.01568627543747425,
0.019607844296842813,
0.023529413156211376,
0.02745098201557994,
0.0313725508749485,
0.035294119734317064,
0.03921568859368563,
0.04313725745305419,
0.0,
0.003921568859368563,
0.007843137718737125,
0.011764706578105688,
0.01568627543747425,
0.019607844296842813,
0.023529413156211376,
0.02745098201557994,
0.0313725508749485,
0.035294119734317064,
0.03921568859368563,
0.04313725745305419
],
"dims": [1, 2, 3, 4],
"type": "float32"
}
]
}
]
}
]