onnxruntime/js/web/test/data/ops/gelu.jsonc
Yulong Wang 641c3a4a37
[js/web] update op test schema (#16921)
### 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
2023-08-03 14:20:20 -07:00

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"
}
]
}
]
}
]