onnxruntime/js/web/test/data/ops/resize.jsonc

48 lines
1.5 KiB
Text
Raw Normal View History

[
{
"name": "Resize - 5D Trilinear",
"operator": "Resize",
// "opset": { "domain": "", "version": 7 },
"attributes": [
{ "name": "mode", "data": "linear", "type": "string" },
{ "name": "coordinate_transformation_mode", "data": "tf_crop_and_resize", "type": "string" },
{ "name": "extrapolation_value", "data": 10, "type": "float" }
],
"cases": [
{
"name": "X",
"inputs": [
{
"data": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0],
"dims": [1, 2, 1, 2, 2],
"type": "float32"
},
{
"data": [0, 0, 0, 0, 0, 1, 2, 1, 2, 2],
"dims": [10],
"type": "float32"
},
{
"data": [1, 1, 1, 2, 4],
"dims": [5],
"type": "float32"
}
],
"outputs": [
{
"data": [
1, 1.571428656578064, 2.142857313156128, 2.7142856121063232, 10, 10, 10, 10, 2.3333332538604736,
2.9047622680664062, 3.4761905670166016, 4.047618865966797, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 3, 3.5714287757873535, 4.142857074737549, 4.714285373687744, 10, 10, 10,
10, 5.6666669845581055, 6.238095760345459, 6.809524059295654, 7.380952835083008, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
],
"dims": [1, 2, 1, 4, 8],
"type": "float32"
}
]
}
]
}
]