mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
* migrated changes to support running super resolution model using ortweb * reverted benchmarking tool related changes which will be in a separate pr * added kernel tests to op and node tests * minor change to the order of variables * added one more unit test for packed matmul
133 lines
3.8 KiB
Text
133 lines
3.8 KiB
Text
[
|
|
{
|
|
"name": "Depth-to-space of a 4-D tensor with default mode",
|
|
"operator": "DepthToSpace",
|
|
"attributes": [{ "name": "blocksize", "data": 2, "type": "int" }],
|
|
"cases": [
|
|
{
|
|
"name": "4D reshape [1, 8, 1, 1]",
|
|
"inputs": [
|
|
{
|
|
"data": [0, 9, 18, 27, 36, 45, 54, 63],
|
|
"dims": [1, 8, 1, 1],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 18, 36, 54, 9, 27, 45, 63],
|
|
"dims": [1, 2, 2, 2],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "4D reshape [2, 8, 1, 2]",
|
|
"inputs": [
|
|
{
|
|
"data": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
|
|
"dims": [2, 8, 1, 2],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 4, 1, 5, 8, 12, 9, 13, 2, 6, 3, 7, 10, 14, 11, 15, 16, 20,
|
|
17, 21, 24, 28, 25, 29, 18, 22, 19, 23, 26, 30, 27, 31],
|
|
"dims": [2, 2, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Depth-to-space of a 4-D tensor with DCR mode",
|
|
"operator": "DepthToSpace",
|
|
"attributes": [{ "name": "mode", "data": "DCR", "type": "string" },
|
|
{ "name": "blocksize", "data": 2, "type": "int" }],
|
|
"cases": [
|
|
{
|
|
"name": "4D reshape [1, 8, 1, 1]",
|
|
"inputs": [
|
|
{
|
|
"data": [0, 9, 18, 27, 36, 45, 54, 63],
|
|
"dims": [1, 8, 1, 1],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 18, 36, 54, 9, 27, 45, 63],
|
|
"dims": [1, 2, 2, 2],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "4D reshape [2, 8, 1, 2]",
|
|
"inputs": [
|
|
{
|
|
"data": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
|
|
"dims": [2, 8, 1, 2],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 4, 1, 5, 8, 12, 9, 13, 2, 6, 3, 7, 10, 14, 11, 15, 16, 20,
|
|
17, 21, 24, 28, 25, 29, 18, 22, 19, 23, 26, 30, 27, 31],
|
|
"dims": [2, 2, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Depth-to-space of a 4-D tensor with CRD mode",
|
|
"operator": "DepthToSpace",
|
|
"attributes": [{ "name": "mode", "data": "CRD", "type": "string" },
|
|
{ "name": "blocksize", "data": 2, "type": "int" }],
|
|
"cases": [
|
|
{
|
|
"name": "4D reshape [1, 8, 1, 1]",
|
|
"inputs": [
|
|
{
|
|
"data": [0, 9, 18, 27, 36, 45, 54, 63],
|
|
"dims": [1, 8, 1, 1],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 9, 18, 27, 36, 45, 54, 63],
|
|
"dims": [1, 2, 2, 2],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "4D reshape [2, 8, 1, 2]",
|
|
"inputs": [
|
|
{
|
|
"data": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
|
|
"dims": [2, 8, 1, 2],
|
|
"type": "float32"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"data": [0, 2, 1, 3, 4, 6, 5, 7, 8, 10, 9, 11, 12, 14, 13, 15, 16, 18,
|
|
17, 19, 20, 22, 21, 23, 24, 26, 25, 27, 28, 30, 29, 31],
|
|
"dims": [2, 2, 2, 4],
|
|
"type": "float32"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|