mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +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
44 lines
881 B
Text
44 lines
881 B
Text
[
|
|
{
|
|
"name": "gelu",
|
|
"operator": "Gelu",
|
|
"opset": { "domain": "com.microsoft", "version": 1 },
|
|
"attributes": [],
|
|
"cases": [
|
|
{
|
|
"name": "T[0]",
|
|
"inputs": [
|
|
{
|
|
"data": [1.0, -2.0, 0, 2.0],
|
|
"dims": [2, 2],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0.8413447141647339, -0.04550027847290039, 0, 1.9544997215270996],
|
|
"dims": [2, 2],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Scalar",
|
|
"inputs": [
|
|
{
|
|
"data": [1.0],
|
|
"dims": [],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0.8413447141647339],
|
|
"dims": [],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|