mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description <!-- Describe your changes. --> ### 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. --> --------- Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
74 lines
2 KiB
Text
74 lines
2 KiB
Text
[
|
|
{
|
|
"name": "constant 2D float16 v10",
|
|
"operator": "Pad",
|
|
"opset": { "domain": "", "version": 10 },
|
|
"attributes": [
|
|
{ "name": "mode", "data": "constant", "type": "string" },
|
|
{ "name": "value", "data": 1.2, "type": "float" },
|
|
{ "name": "pads", "data": [3, 2, 2, 3], "type": "ints" }
|
|
],
|
|
"cases": [
|
|
{
|
|
"name": "[2,2]->[7,7]",
|
|
"inputs": [
|
|
{
|
|
"data": [1.0, 2.0, 3.0, 4.5],
|
|
"dims": [2, 2],
|
|
"type": "float16"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [
|
|
1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2,
|
|
1.2, 1.2, 1.0, 2.0, 1.2, 1.2, 1.2, 1.2, 1.2, 3.0, 4.5, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2,
|
|
1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2
|
|
],
|
|
"dims": [7, 7],
|
|
"type": "float16"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "constant 2D float16 v19",
|
|
"operator": "Pad",
|
|
"opset": { "domain": "", "version": 19 },
|
|
"attributes": [{ "name": "mode", "data": "constant", "type": "string" }],
|
|
"cases": [
|
|
{
|
|
"name": "[2,2]->[7,7]",
|
|
"inputs": [
|
|
{
|
|
"data": [1.0, 2.0, 3.0, 4.5],
|
|
"dims": [2, 2],
|
|
"type": "float16"
|
|
},
|
|
{
|
|
"data": [3, 2, 2, 3],
|
|
"dims": [4],
|
|
"type": "int64"
|
|
},
|
|
{
|
|
"data": [1.2],
|
|
"dims": [1],
|
|
"type": "float16"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [
|
|
1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2,
|
|
1.2, 1.2, 1.0, 2.0, 1.2, 1.2, 1.2, 1.2, 1.2, 3.0, 4.5, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2,
|
|
1.2, 1.2, 1.2, 1.2, 1.2, 1.2, 1.2
|
|
],
|
|
"dims": [7, 7],
|
|
"type": "float16"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|