mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-19 21:32:23 +00:00
### Description update op test schema. This changes fixes several problems for operator tests for web: - `opsets` -> `opset`: an operator uses exactly one opset instead of multiple - `condition` -> `platformCondition`: make it less confusing - `inputShapeDefinitions`: allows to test ORT behaviors when it get no/partial/full shape info. Added a JSON schema file and also an example file
34 lines
921 B
Text
34 lines
921 B
Text
[
|
|
{
|
|
"name": "Pow with no attributes - big number",
|
|
"operator": "Pow",
|
|
"attributes": [],
|
|
"platformCondition": "^((?!iOS).)*$", // does NOT contains 'iOS': large number cannot be handled in a half_float environment
|
|
"cases": [
|
|
{
|
|
"name": "T[2,4] T[3,2,4]",
|
|
"inputs": [
|
|
{
|
|
"data": [1, 2, 3, 4, 5, 6, 7, 8],
|
|
"dims": [2, 4],
|
|
"type": "float32"
|
|
},
|
|
{
|
|
"data": [2, 6, 1, 2, 1, 3, 1, 4, 3, 5, 3, 4, 1, 4, 1, 6, 4, 4, 5, 6, 2, 4, 2, 6],
|
|
"dims": [3, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [
|
|
1, 64, 3, 16, 5, 216, 7, 4096, 1, 32, 27, 256, 5, 1296, 7, 262144, 1, 16, 243, 4096, 25, 1296, 49, 262144
|
|
],
|
|
"dims": [3, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|