onnxruntime/js/web/test/data/ops/slice.jsonc
satyajandhyala b291b20fa0
[JS/Web]Added uniforms support to Slice op. (#18422)
### Description
Support uniforms in Slice op



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Improve ferformance
2023-11-16 09:44:13 -08:00

63 lines
1.8 KiB
Text

[
{
"name": "Slice float32",
"operator": "Slice",
"attributes": [],
"cases": [
{
"name": "T[5] T[1] T[1] (float32)",
"inputs": [
{
"data": [
0.3964604139328003, -0.8916832804679871, -1.6578896045684814, 1.960708737373352, 1.181204915046692
],
"dims": [5],
"type": "float32"
},
{ "data": [3], "dims": [1], "type": "int64" },
{ "data": [4], "dims": [1], "type": "int64" }
],
"outputs": [{ "data": [1.960708737373352], "dims": [1], "type": "float32" }]
}
]
},
{
"name": "Slice float32 with input[0] dim > 4",
"operator": "Slice",
"attributes": [],
"cases": [
{
"name": "T[1, 1, 1, 1, 5] T[1] T[1] T[1] (float32)",
"inputs": [
{
"data": [
0.3964604139328003, -0.8916832804679871, -1.6578896045684814, 1.960708737373352, 1.181204915046692
],
"dims": [1, 1, 1, 1, 5],
"type": "float32"
},
{ "data": [3], "dims": [1], "type": "int64" },
{ "data": [4], "dims": [1], "type": "int64" },
{ "data": [4], "dims": [1], "type": "int64" }
],
"outputs": [{ "data": [1.960708737373352], "dims": [1, 1, 1, 1, 1], "type": "float32" }]
}
]
},
{
"name": "Slice int32",
"operator": "Slice",
"attributes": [],
"cases": [
{
"name": "T[5] T[1] T[1] (int32)",
"inputs": [
{ "data": [0, 0, -1, 1, 0], "dims": [5], "type": "int32" },
{ "data": [3], "dims": [1], "type": "int64" },
{ "data": [4], "dims": [1], "type": "int64" }
],
"outputs": [{ "data": [1], "dims": [1], "type": "int32" }]
}
]
}
]