mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
### Description <!-- Describe your changes. --> 1. Fix Where operator to handle Boolean input less than 4 bytes. 2. Fix JSEP test harness to use tensor names consistently. ### 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. -->
206 lines
4.7 KiB
Text
206 lines
4.7 KiB
Text
[
|
|
{
|
|
"name": "Where with no attributes",
|
|
"operator": "Where",
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[3] T[3] T[3] float32 T[3] ",
|
|
"inputs": [
|
|
{
|
|
"data": [true, false, true, false, true, false, true, false],
|
|
"dims": [8],
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"data": [4.0, 8.0, 7.0, 2.0, 4.0, 8.0, 7.0, 1.0],
|
|
"dims": [8],
|
|
"type": "float32"
|
|
},
|
|
{
|
|
"data": [1.0, 3.0, 9.0, 6.0, 1.0, 3.0, 9.0, 2.0],
|
|
"dims": [8],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [4.0, 3.0, 7.0, 6.0, 4.0, 3.0, 7.0, 2.0],
|
|
"dims": [8],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Where with no attributes",
|
|
"operator": "Where",
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[3] T[3] T[3] int32 T[3] ",
|
|
"inputs": [
|
|
{
|
|
"data": [true, false, true, false, true, false, true, false],
|
|
"dims": [8],
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"data": [4, 8, 7, 2, 4, 8, 7, 1],
|
|
"dims": [8],
|
|
"type": "int32"
|
|
},
|
|
{
|
|
"data": [1, 3, 9, 6, 1, 3, 9, 2],
|
|
"dims": [8],
|
|
"type": "int32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [4, 3, 7, 6, 4, 3, 7, 2],
|
|
"dims": [8],
|
|
"type": "int32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Where with no attributes",
|
|
"operator": "Where",
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[3] T[3] T[3] uint32 T[3] ",
|
|
"inputs": [
|
|
{
|
|
"data": [true, false, true, false, true, false, true, false],
|
|
"dims": [8],
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"data": [4, 8, 7, 2, 4, 8, 7, 1],
|
|
"dims": [8],
|
|
"type": "uint32"
|
|
},
|
|
{
|
|
"data": [1, 4294967295, 9, 6, 1, 3, 9, 2],
|
|
"dims": [8],
|
|
"type": "uint32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [4, 4294967295, 7, 6, 4, 3, 7, 2],
|
|
"dims": [8],
|
|
"type": "uint32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Where with no attributes",
|
|
"operator": "Where",
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[3] T[3] T[3] bool T[3] ",
|
|
"inputs": [
|
|
{
|
|
"data": [true, false, true, false, true, false, true, false],
|
|
"dims": [8],
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"data": [true, true, true, true, true, true, true, true],
|
|
"dims": [8],
|
|
"type": "float32"
|
|
},
|
|
{
|
|
"data": [true, false, true, false, true, false, true, false],
|
|
"dims": [8],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [true, false, true, false, true, false, true, false],
|
|
"dims": [8],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Where with no attributes",
|
|
"operator": "Where",
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[3 3] T[3 3] T[1] float32 broadcast",
|
|
"inputs": [
|
|
{
|
|
"data": [true, true, true, true, true, false, false, false, false],
|
|
"dims": [3, 3],
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"data": [0, 1, 2, 3, 4, 5, 6, 7, 8],
|
|
"dims": [3, 3],
|
|
"type": "float32"
|
|
},
|
|
{
|
|
"data": [-1.0],
|
|
"dims": [1],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 1, 2, 3, 4, -1, -1, -1, -1],
|
|
"dims": [3, 3],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Where with no attributes",
|
|
"operator": "Where",
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[1 1 2 1] T[1 4] T[1 1 2 4] float32 broadcast 1",
|
|
"inputs": [
|
|
{
|
|
"data": [true, false],
|
|
"dims": [1, 1, 2, 1],
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"data": [1, 2, 3, 4],
|
|
"dims": [1, 4],
|
|
"type": "float32"
|
|
},
|
|
{
|
|
"data": [5, 6, 7, 8, 9, 10, 11, 12],
|
|
"dims": [1, 1, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [1, 2, 3, 4, 9, 10, 11, 12],
|
|
"dims": [1, 1, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|