Xenova's picture
Xenova HF Staff
sync 2e7068faf55e
1ff7f06 verified
Raw
History Blame
23.2 kB
{
"op": "ai.onnx.DepthToSpace",
"fixtureArrays": {
"dcr_input_input": [0, 1, 2, 3, 10, 11, 12, 13, 20, 21, 22, 23, 30, 31, 32, 33],
"onnx_backend_dcr_1x8x2x3_input_input": [0, 1, 2, 3, 4, 5, 9, 10, 11, 12, 13, 14, 18, 19, 20, 21, 22, 23, 27, 28, 29, 30, 31, 32, 36, 37, 38, 39, 40, 41, 45, 46, 47, 48, 49, 50, 54, 55, 56, 57, 58, 59, 63, 64, 65, 66, 67, 68],
"ort_webgpu_default_mode_batch2_wide_input_input": [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]
},
"cases": [
{
"name": "blocksize3_dcr_odd_input_width_coarsened",
"attrs": { "blocksize": 3, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 9, 24, 19],
"data": { "kind": "linspace", "start": 0.0, "end": 4103.0 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 72, 57], "tolerance": 0 } }
},
{
"name": "dispatch_cliff_nchw_dcr",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 4, 2048, 2049],
"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4096, 4098], "tolerance": 0 } }
},
{
"name": "dcr",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 4, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/dcr_input_input" } }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4] } }
},
{
"name": "crd",
"attrs": { "blocksize": 2, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 4, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/dcr_input_input" } }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4] } }
},
{
"name": "dcr_block3_multichannel",
"attrs": { "blocksize": 3, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 18, 1, 2],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.37 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 3, 6] } }
},
{
"name": "dcr_high_channel_vec4_1x256x4x4",
"provenance": {
"notes": "Compact high-channel DCR sibling for the 1x256x64x64 DepthToSpace benchmark; preserves the vec4/channel-heavy shape family without benchmark-scale spatial size."
},
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 256, 4, 4],
"data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.029, "scale": 0.5 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 64, 8, 8], "tolerance": 0 } }
},
{
"name": "crd_high_channel_vec4_1x256x4x4",
"provenance": {
"notes": "Compact high-channel CRD sibling for the 1x256x64x64 DepthToSpace benchmark; preserves the mode and channel-heavy vec4 regime without benchmark-scale spatial size."
},
"attrs": { "blocksize": 2, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 256, 4, 4],
"data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.031, "scale": 0.5 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 64, 8, 8], "tolerance": 0 } }
},
{
"name": "onnx_backend_dcr_1x8x2x3",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 2, 3],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_dcr_1x8x2x3_input_input" } }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 4, 6], "tolerance": 0 } }
},
{
"name": "onnx_backend_crd_1x8x2x3",
"attrs": { "blocksize": 2, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 2, 3],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_dcr_1x8x2x3_input_input" } }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 4, 6], "tolerance": 0 } }
},
{
"name": "ort_opset7_default_dcr_1x8x1x2",
"attrs": { "blocksize": 2 },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_1"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 1, 2],
"data": {
"kind": "values",
"values": [0.0, 0.2, 2.0, 2.2, 0.1, 0.3, 2.1, 2.3, 1.0, 1.2, 3.0, 3.2, 1.1, 1.3, 3.1, 3.3]
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_opset7_default_dcr_batch2_channels12",
"attrs": { "blocksize": 2 },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_2"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 12, 3, 2],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0, 49.0, 50.0, 51.0, 52.0, 53.0, 54.0, 55.0, 56.0, 57.0, 58.0, 59.0, 60.0, 61.0, 62.0, 63.0, 64.0, 65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0, 72.0, 73.0, 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0, 83.0, 84.0, 85.0, 86.0, 87.0, 88.0, 89.0, 90.0, 91.0, 92.0, 93.0, 94.0, 95.0, 96.0, 97.0, 98.0, 99.0, 100.0, 101.0, 102.0, 103.0, 104.0, 105.0, 106.0, 107.0, 108.0, 109.0, 110.0, 111.0, 112.0, 113.0, 114.0, 115.0, 116.0, 117.0, 118.0, 119.0, 120.0, 121.0, 122.0, 123.0, 124.0, 125.0, 126.0, 127.0, 128.0, 129.0, 130.0, 131.0, 132.0, 133.0, 134.0, 135.0, 136.0, 137.0, 138.0, 139.0, 140.0, 141.0, 142.0, 143.0]
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 6, 4], "tolerance": 0 } }
},
{
"name": "f16_crd_batch2_multichannel",
"attrs": { "blocksize": 2, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float16",
"shape": [2, 8, 1, 1],
"data": {
"kind": "values",
"values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0]
}
}
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 2, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_webgpu_default_mode_single_pixel",
"attrs": { "blocksize": 2 },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_WebGPU_DefaultMode1"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 1, 1],
"data": { "kind": "values", "values": [0.0, 9.0, 18.0, 27.0, 36.0, 45.0, 54.0, 63.0] }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_uint8_default_mode_single_pixel",
"attrs": { "blocksize": 2 },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_3<uint8_t>",
"notes": "ORT typed coverage includes uint8 DepthToSpace; this compact DCR/default-mode case keeps logical uint8 coverage small."
},
"inputs": {
"input": {
"dtype": "uint8",
"shape": [1, 8, 1, 1],
"data": { "kind": "values", "values": [0, 9, 18, 27, 36, 45, 54, 63] }
}
},
"outputs": {
"output": {
"dtype": "uint8",
"shape": [1, 2, 2, 2],
"tolerance": 0,
"data": { "kind": "values", "values": [0, 18, 36, 54, 9, 27, 45, 63] }
}
}
},
{
"name": "ort_webgpu_default_mode_batch2_wide",
"attrs": { "blocksize": 2 },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_WebGPU_DefaultMode2"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 8, 1, 2],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_webgpu_default_mode_batch2_wide_input_input" }
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_webgpu_dcr_single_pixel",
"attrs": { "blocksize": 2, "mode": "DCR" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_WebGPU_DCR1"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 1, 1],
"data": { "kind": "values", "values": [0.0, 9.0, 18.0, 27.0, 36.0, 45.0, 54.0, 63.0] }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_webgpu_dcr_batch2_wide",
"attrs": { "blocksize": 2, "mode": "DCR" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_WebGPU_DCR2"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 8, 1, 2],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_webgpu_default_mode_batch2_wide_input_input" }
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_crd_batched_reversed_second_batch",
"attrs": { "blocksize": 2, "mode": "CRD" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_CRD_Batched"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 4, 2, 3],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 32.0, 31.0, 30.0, 29.0, 28.0, 27.0, 23.0, 22.0, 21.0, 20.0, 19.0, 18.0, 14.0, 13.0, 12.0, 11.0, 10.0, 9.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0]
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 1, 4, 6], "tolerance": 0 } }
},
{
"name": "ort_webgpu_crd_single_pixel",
"attrs": { "blocksize": 2, "mode": "CRD" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_WebGPU_CRD1"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 1, 1],
"data": { "kind": "values", "values": [0.0, 9.0, 18.0, 27.0, 36.0, 45.0, 54.0, 63.0] }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_webgpu_crd_batch2_wide",
"attrs": { "blocksize": 2, "mode": "CRD" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_WebGPU_CRD2"
},
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 8, 1, 2],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_webgpu_default_mode_batch2_wide_input_input" }
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2, 2, 4], "tolerance": 0 } }
},
{
"name": "onnx_backend_depthtospace_crd_mode_example",
"attrs": { "blocksize": 2, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 2, 3],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_dcr_1x8x2x3_input_input" } }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 4, 6] } },
"provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_depthtospace_crd_mode_example" }
},
{
"name": "onnx_backend_depthtospace_example",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 2, 3],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_dcr_1x8x2x3_input_input" } }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 4, 6] } },
"provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_depthtospace_example" }
},
{
"name": "ort_uint8_dcr_typed",
"attrs": { "blocksize": 2, "mode": "DCR" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_4",
"notes": "Typed ORT coverage includes uint8; this framework stores logical uint8 values in 32-bit slots."
},
"inputs": {
"input": {
"dtype": "uint8",
"shape": [1, 8, 1, 1],
"data": { "kind": "values", "values": [0, 9, 18, 27, 36, 45, 54, 63] }
}
},
"outputs": {
"output": {
"dtype": "uint8",
"shape": [1, 2, 2, 2],
"data": { "kind": "values", "values": [0, 18, 36, 54, 9, 27, 45, 63] },
"tolerance": 0
}
}
},
{
"name": "ort_uint8_crd_typed",
"attrs": { "blocksize": 2, "mode": "CRD" },
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_5",
"notes": "Typed ORT coverage includes uint8; this framework stores logical uint8 values in 32-bit slots."
},
"inputs": {
"input": {
"dtype": "uint8",
"shape": [1, 8, 1, 1],
"data": { "kind": "values", "values": [0, 9, 18, 27, 36, 45, 54, 63] }
}
},
"outputs": {
"output": {
"dtype": "uint8",
"shape": [1, 2, 2, 2],
"data": { "kind": "values", "values": [0, 9, 18, 27, 36, 45, 54, 63] },
"tolerance": 0
}
}
},
{
"name": "empty_zero_dim",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": { "input": { "dtype": "float32", "shape": [0, 4, 2, 2], "data": { "kind": "values", "values": [] } } },
"outputs": { "output": { "dtype": "float32", "shape": [0, 1, 4, 4], "tolerance": 0 } }
},
{
"name": "empty_zero_dim_f16",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": { "input": { "dtype": "float16", "shape": [0, 4, 2, 2], "data": { "kind": "values", "values": [] } } },
"outputs": { "output": { "dtype": "float16", "shape": [0, 1, 4, 4], "tolerance": 0 } }
},
{
"name": "crd_block3_2x2",
"attrs": { "blocksize": 3, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 18, 2, 2],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0, 49.0, 50.0, 51.0, 52.0, 53.0, 54.0, 55.0, 56.0, 57.0, 58.0, 59.0, 60.0, 61.0, 62.0, 63.0, 64.0, 65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0]
}
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 6, 6], "tolerance": 0 } }
},
{
"name": "f16_dcr_vec4_path",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float16",
"shape": [1, 8, 1, 2],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0]
}
}
},
"outputs": { "output": { "dtype": "float16", "shape": [1, 2, 2, 4], "tolerance": 0.001 } }
},
{
"name": "uint8_dcr_vec4_path",
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "uint8",
"shape": [1, 8, 1, 2],
"data": {
"kind": "values",
"values": [0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240]
}
}
},
"outputs": { "output": { "dtype": "uint8", "shape": [1, 2, 2, 4], "tolerance": 0 } }
},
{
"name": "blocksize_1_identity_dcr",
"attrs": { "blocksize": 1, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 4, 3, 5],
"data": { "kind": "fillFloat32", "sinStep": 0.25, "cosStep": 0.41, "scale": 2.0 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 4, 3, 5], "tolerance": 0 } }
},
{
"name": "blocksize_4_dcr_nontrivial_reorder",
"attrs": { "blocksize": 4, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 16, 2, 4],
"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 8, 16], "tolerance": 0 } }
},
{
"name": "ort_standard_int32_dcr_extremes",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_int_opset13",
"notes": "ONNX DepthToSpace-13 permits int32; signed extrema prove the widened i32 route is a bit-exact permutation."
},
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "int32",
"shape": [1, 4, 1, 2],
"data": { "kind": "values", "values": [-2147483648, 2147483647, -16777217, 16777217, -1, 0, 42, -42] }
}
},
"outputs": { "output": { "dtype": "int32", "shape": [1, 1, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_standard_int16_dcr_extremes",
"provenance": {
"source": "onnx/docs/Operators.md#DepthToSpace",
"notes": "ONNX DepthToSpace-13 permits int16; both signed extrema guard the runtime's widened i32 storage route."
},
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "int16",
"shape": [1, 4, 1, 2],
"data": { "kind": "values", "values": [-32768, 32767, -12345, 12345, -1, 0, 42, -42] }
}
},
"outputs": { "output": { "dtype": "int16", "shape": [1, 1, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_standard_int8_dcr_extremes",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/space_depth_ops_test.cc",
"test": "TensorOpTest.DepthToSpaceTest_int_opset13",
"notes": "Uses both int8 extrema so the widened i32 storage route cannot hide narrowing or sign loss."
},
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "int8",
"shape": [1, 4, 1, 2],
"data": { "kind": "values", "values": [-128, 127, -64, 63, -1, 0, 42, -42] }
}
},
"outputs": { "output": { "dtype": "int8", "shape": [1, 1, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_standard_uint32_dcr_extremes",
"provenance": {
"source": "onnx/docs/Operators.md#DepthToSpace",
"notes": "ONNX DepthToSpace-13 permits uint32; values across the signed boundary and UINT32_MAX guard exact u32 payload movement."
},
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "uint32",
"shape": [1, 4, 1, 2],
"data": { "kind": "values", "values": [0, 4294967295, 16777217, 2147483648, 1, 42, 4000000000, 255] }
}
},
"outputs": { "output": { "dtype": "uint32", "shape": [1, 1, 2, 4], "tolerance": 0 } }
},
{
"name": "ort_standard_bool_dcr_pattern",
"provenance": {
"source": "onnx/docs/Operators.md#DepthToSpace",
"notes": "ONNX DepthToSpace-13 permits bool; an asymmetric pattern checks that widened u32 boolean payloads are reordered without conversion."
},
"attrs": { "blocksize": 2, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "bool",
"shape": [1, 4, 1, 2],
"data": { "kind": "values", "values": [0, 1, 1, 0, 1, 1, 0, 0] }
}
},
"outputs": { "output": { "dtype": "bool", "shape": [1, 1, 2, 4], "tolerance": 0 } }
},
{
"name": "blocksize3_dcr_odd_input_width_coarsened_f16",
"provenance": {
"notes": "A float16 coarsened odd-width shuffle uses an output width not divisible by four and at least 4096 output elements. Data is scaled into [0, 1] so all copied values remain accurately representable."
},
"attrs": { "blocksize": 3, "mode": "DCR" },
"inputs": {
"input": {
"dtype": "float16",
"shape": [1, 9, 24, 19],
"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }
}
},
"outputs": { "output": { "dtype": "float16", "shape": [1, 1, 72, 57], "tolerance": 0 } }
},
{
"name": "blocksize3_crd_odd_input_width_coarsened",
"provenance": {
"notes": "CRD mode on the coarsened path checks its distinct channel-unpacking order. The output width is not divisible by four and the output has at least 4096 elements."
},
"attrs": { "blocksize": 3, "mode": "CRD" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 9, 24, 19],
"data": { "kind": "linspace", "start": 0.0, "end": 4103.0 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 72, 57], "tolerance": 0 } }
}
]
}