onnxruntime/js/web/test/data/ops/depth-to-space.jsonc
Yulong Wang 1743e9a615
[js] enable formatter for more file types (#16888)
### Description
enable formatter for .js/.json/.jsonc/.md files
2023-07-28 15:46:58 -07:00

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