Xenova's picture
Xenova HF Staff
sync 2e7068faf55e
0af9165 verified
Raw
History Blame
33.3 kB
{
"op": "ai.onnx.InstanceNormalization",
"fixtureArrays": {
"ort_rank3_batch2_repeated_epsilon_point3_input_input": [3.1513367, 9.283596, 1.4546119, 5.4617004, 8.519701, 1.2382338, 1.7930176, 5.1099434, 7.9195533, 7.638727, 8.065445, 3.8082376, 3.1513367, 9.283596, 1.4546119, 5.4617004, 8.519701, 1.2382338, 1.7930176, 5.1099434, 7.9195533, 7.638727, 8.065445, 3.8082376]
},
"cases": [
{
"name": "dispatch_cliff_ncl_16777216",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 1, 16777217],
"data": { "kind": "cycle", "values": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6] }
},
"scale": { "dtype": "float32", "shape": [1], "data": { "kind": "constant", "value": 1.0 } },
"b": { "dtype": "float32", "shape": [1], "data": { "kind": "constant", "value": 0.0 } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 16777217], "tolerance": 0.002 } }
},
{
"name": "subgroup_vec4_2x4x32x32",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 4, 32, 32],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.21 }
},
"scale": {
"dtype": "float32",
"shape": [4],
"data": { "kind": "fillFloat32", "sinStep": 0.29, "cosStep": 0.11, "scale": 0.5 }
},
"b": {
"dtype": "float32",
"shape": [4],
"data": { "kind": "fillFloat32", "sinStep": 0.07, "cosStep": 0.19, "scale": 0.25 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 4, 32, 32], "tolerance": 0.000002 } }
},
{
"name": "subgroup_scalar_1x2x13x5",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 13, 5],
"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.23 }
},
"scale": {
"dtype": "float32",
"shape": [2],
"data": { "kind": "fillFloat32", "sinStep": 0.31, "cosStep": 0.07, "scale": 0.4 }
},
"b": {
"dtype": "float32",
"shape": [2],
"data": { "kind": "fillFloat32", "sinStep": 0.05, "cosStep": 0.13, "scale": 0.2 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 13, 5], "tolerance": 0.000002 } }
},
{
"name": "f32_yfold_many_channels_1x70000x4",
"provenance": {
"notes": "Compact sibling for the y-fold InstanceNormalization benchmark; preserves C>65535 with much smaller spatial work."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 70000, 4],
"data": { "kind": "fillFloat32", "sinStep": 0.011, "cosStep": 0.019, "scale": 0.5 }
},
"scale": {
"dtype": "float32",
"shape": [70000],
"data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.25, "offset": 1.0 }
},
"b": {
"dtype": "float32",
"shape": [70000],
"data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.1 }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 70000, 4], "tolerance": 0.001, "relTolerance": 0.001 } }
},
{
"name": "f32_batched_planes_1x257x64",
"provenance": {
"notes": "Compact correctness lock for the feature-independent lane-cohort plane batching used by the 70,000-row dispatch-cliff benchmark."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 257, 64],
"data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.031, "scale": 0.5 }
},
"scale": {
"dtype": "float32",
"shape": [257],
"data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.027, "scale": 0.25, "offset": 1.0 }
},
"b": {
"dtype": "float32",
"shape": [257],
"data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.023, "scale": 0.1 }
}
},
"outputs": {
"output": { "dtype": "float32", "shape": [1, 257, 64], "tolerance": 0.00001, "relTolerance": 0.00001 }
}
},
{
"name": "nchw",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 3],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 1.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 3], "tolerance": 0.000001 } }
},
{
"name": "f32_tiny_variance_epsilon_zero_gpu_gap",
"skipGpu": {
"category": "permanent",
"reason": "Portable WGSL floating-point semantics do not guarantee preservation of the subnormal values required by this fixture. Backend evidence: WebGPU/Metal flushes subnormals to zero in f32; the subnormal per-instance variance collapses to zero so normalization is non-finite."
},
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormNCHW",
"notes": "Valid epsilon=0 edge: normal inputs produce subnormal per-instance variance but finite order-one normalized outputs."
},
"attrs": { "epsilon": 0 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2],
"data": { "kind": "values", "values": [1e-20, -1e-20, 2e-20, -2e-20] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 1.0] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2], "tolerance": 0.00001 } }
},
{
"name": "f32_subnormal_scale_rank3_gpu_gap",
"skipGpu": {
"category": "permanent",
"reason": "Portable WGSL floating-point semantics do not guarantee preservation of the subnormal values required by this fixture. Backend evidence: WebGPU/Metal flushes subnormals to zero in f32; the subnormal affine scale collapses to zero, losing the tiny output it should preserve."
},
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNorm",
"notes": "Subnormal scale is a valid affine parameter; the normalized output should preserve tiny values."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2],
"data": { "kind": "values", "values": [-1.0, 1.0, -2.0, 2.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1e-40, -2e-40] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2], "tolerance": 1e-44 } }
},
{
"name": "f32_subnormal_scale_rank4_vec4_gpu_gap",
"skipGpu": {
"category": "permanent",
"reason": "Portable WGSL floating-point semantics do not guarantee preservation of the subnormal values required by this fixture. Backend evidence: WebGPU/Metal flushes subnormals to zero in f32; the subnormal affine scale collapses to zero (vec4 path)."
},
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormBatch1",
"notes": "Vec4 spatial companion for valid subnormal scale outputs."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 2],
"data": { "kind": "values", "values": [-3.0, -1.0, 1.0, 3.0, 4.0, 2.0, 0.0, -2.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1e-40, -2e-40] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2], "tolerance": 1e-44 } }
},
{
"name": "ncdhw_rank5",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"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]
}
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 1.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2, 2], "tolerance": 0.000001 } }
},
{
"name": "large_mean_small_variance_one_pass_cancellation",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 3],
"data": {
"kind": "values",
"values": [8192.0, 8193.0, 8194.0, 8195.0, 8196.0, 8197.0, -8192.0, -8193.0, -8194.0, -8195.0, -8196.0, -8197.0]
}
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 1.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 3], "tolerance": 0.001 } }
},
{
"name": "zero_variance_bias_only",
"attrs": { "epsilon": 0.001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 3, 2, 2],
"data": { "kind": "values", "values": [7.0, 7.0, 7.0, 7.0, -3.0, -3.0, -3.0, -3.0, 0.0, 0.0, 0.0, 0.0] }
},
"scale": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [10.0, -2.0, 4.0] } },
"b": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [0.5, -1.0, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 3, 2, 2], "tolerance": 0.000001 } }
},
{
"name": "large_epsilon_damps_output",
"attrs": { "epsilon": 0.5 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 1, 4],
"data": { "kind": "values", "values": [1.0, 2.0, 4.0, 8.0, -1.0, -2.0, -4.0, -8.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.5, -0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.25, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 1, 4], "tolerance": 0.000001 } }
},
{
"name": "ort_webgpu_nchw_zero_variance_channel",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormNCHW_webgpu"
},
"attrs": { "epsilon": 0.009999999776482582 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 1, 3],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 2.0, 2.0, 2.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 1.0] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 1, 3], "tolerance": 0.00001 } }
},
{
"name": "ort_webgpu_nchw_mixed_zero_variance",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormNCHW_webgpu_2"
},
"attrs": { "epsilon": 0.009999999776482582 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 2],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 2.0, 2.0, 2.0, 2.0, 2.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 1.0] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2], "tolerance": 0.00001 } }
},
{
"name": "ort_rank3_batch1_epsilon_point3",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormBatch1"
},
"attrs": { "epsilon": 0.3 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 3, 4],
"data": {
"kind": "values",
"values": [3.1513367, 9.283596, 1.4546119, 5.4617004, 8.519701, 1.2382338, 1.7930176, 5.1099434, 7.9195533, 7.638727, 8.065445, 3.8082376]
}
},
"scale": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [1.0, 1.0, 1.0] } },
"b": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [0.0, 0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 3, 4], "tolerance": 0.00001 } }
},
{
"name": "ort_rank3_batch2_distinct_epsilon_point3",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNorm"
},
"attrs": { "epsilon": 0.3 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 3, 4],
"data": {
"kind": "values",
"values": [3.1513367, 9.283596, 1.4546119, 5.4617004, 8.519701, 1.2382338, 1.7930176, 5.1099434, 7.9195533, 7.638727, 8.065445, 3.8082376, 2.3667817, 2.8248506, 3.7754705, 5.861325, 5.058735, 3.2787242, 3.6843839, 9.755121, 2.7902672, 7.3974323, 8.283609, 8.488337]
}
},
"scale": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [1.0, 1.0, 1.0] } },
"b": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [0.0, 0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 4], "tolerance": 0.00001 } }
},
{
"name": "ort_rank3_batch2_repeated_epsilon_point3",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormBatch2"
},
"attrs": { "epsilon": 0.3 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 3, 4],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_rank3_batch2_repeated_epsilon_point3_input_input" }
}
},
"scale": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [1.0, 1.0, 1.0] } },
"b": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [0.0, 0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 4], "tolerance": 0.00001 } }
},
{
"name": "ort_rank3_batch1_fp16",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormBatch1_fp16",
"notes": "Valid fp16 InstanceNormalization coverage for a rank-3 single-batch input."
},
"attrs": { "epsilon": 0.3 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [1, 3, 4],
"data": {
"kind": "values",
"values": [3.1513367, 9.283596, 1.4546119, 5.4617004, 8.519701, 1.2382338, 1.7930176, 5.1099434, 7.9195533, 7.638727, 8.065445, 3.8082376]
}
},
"scale": { "dtype": "float16", "shape": [3], "data": { "kind": "values", "values": [1.0, 1.0, 1.0] } },
"b": { "dtype": "float16", "shape": [3], "data": { "kind": "values", "values": [0.0, 0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [1, 3, 4], "tolerance": 0.005, "relTolerance": 0.005 } }
},
{
"name": "ort_rank3_batch2_fp16",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNormBatch2_fp16",
"notes": "Valid fp16 InstanceNormalization coverage for a rank-3 two-batch input."
},
"attrs": { "epsilon": 0.3 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [2, 3, 4],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_rank3_batch2_repeated_epsilon_point3_input_input" }
}
},
"scale": { "dtype": "float16", "shape": [3], "data": { "kind": "values", "values": [1.0, 1.0, 1.0] } },
"b": { "dtype": "float16", "shape": [3], "data": { "kind": "values", "values": [0.0, 0.0, 0.0] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 3, 4], "tolerance": 0.005, "relTolerance": 0.005 } }
},
{
"name": "ort_rank5_instance_norm_2",
"provenance": {
"source": "onnxruntime/test/providers/cpu/nn/instance_norm_op_test.cc",
"test": "InstanceNormalizationOpTest.InstanceNorm_2"
},
"attrs": { "epsilon": 0.3 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 3, 2, 1, 3],
"data": {
"kind": "values",
"values": [2.676342, 4.1100464, 4.570907, 5.8493505, 4.772751, 7.1669755, 2.8400702, 8.903057, 1.2464883, 7.034208, 4.755743, 6.0282083, 2.2634823, 2.7829134, 8.206701, 9.7143545, 3.8208177, 7.2309036, 8.887503, 9.05146, 1.7653979, 1.351493, 2.5284739, 8.903282, 1.8851215, 4.7899685, 9.621006, 5.7984877, 7.226894, 3.8396406, 7.1785083, 8.511631, 1.1645945, 7.751299, 9.89975, 7.733491]
}
},
"scale": {
"dtype": "float32",
"shape": [3],
"data": { "kind": "values", "values": [4.753198, 7.4829206, 1.0010294] }
},
"b": {
"dtype": "float32",
"shape": [3],
"data": { "kind": "values", "values": [3.720993, 2.320803, 1.8310473] }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 2, 1, 3], "tolerance": 0.00001 } }
},
{
"name": "onnx_backend_example_1x2x1x3",
"provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_instancenorm_example" },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 1, 3],
"data": { "kind": "values", "values": [-1.0, 0.0, 1.0, 2.0, 3.0, 4.0] }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.0, 1.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.0, 1.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 1, 3], "tolerance": 0.00001 } }
},
{
"name": "onnx_backend_instancenorm_epsilon",
"attrs": { "epsilon": 0.009999999776482582 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 3, 4, 5],
"data": {
"kind": "values",
"values": [1.764052391052246, 0.40015721321105957, 0.978738009929657, 2.2408931255340576, 1.8675580024719238, -0.9772778749465942, 0.9500884413719177, -0.15135720372200012, -0.10321885347366333, 0.4105985164642334, 0.14404356479644775, 1.4542734622955322, 0.7610377073287964, 0.12167501449584961, 0.44386324286460876, 0.3336743414402008, 1.4940791130065918, -0.2051582634449005, 0.3130677044391632, -0.8540957570075989, -2.5529897212982178, 0.653618574142456, 0.8644362092018127, -0.7421650290489197, 2.269754648208618, -1.4543657302856445, 0.04575851559638977, -0.18718385696411133, 1.5327792167663574, 1.4693588018417358, 0.154947429895401, 0.37816253304481506, -0.8877857327461243, -1.980796456336975, -0.34791216254234314, 0.15634897351264954, 1.2302906513214111, 1.202379822731018, -0.38732680678367615, -0.302302747964859, -1.0485529899597168, -1.420017957687378, -1.7062702178955078, 1.950775384902954, -0.5096521973609924, -0.4380742907524109, -1.2527953386306763, 0.7774903774261475, -1.6138978004455566, -0.21274028718471527, -0.8954665660858154, 0.38690251111984253, -0.5108051300048828, -1.18063223361969, -0.02818222902715206, 0.4283318817615509, 0.06651721894741058, 0.30247190594673157, -0.6343221068382263, -0.3627411723136902, -0.6724604368209839, -0.35955315828323364, -0.8131462931632996, -1.7262825965881348, 0.17742614448070526, -0.4017809331417084, -1.630198359489441, 0.46278226375579834, -0.9072983860969543, 0.05194539576768875, 0.7290905714035034, 0.12898291647434235, 1.1394007205963135, -1.234825849533081, 0.4023416340351105, -0.6848101019859314, -0.8707971572875977, -0.5788496732711792, -0.3115525245666504, 0.056165341287851334, -1.1651498079299927, 0.9008265137672424, 0.4656624495983124, -1.5362436771392822, 1.4882521629333496, 1.895889163017273, 1.1787796020507812, -0.1799248307943344, -1.0707526206970215, 1.0544517040252686, -0.4031769335269928, 1.222445011138916, 0.2082749754190445, 0.9766390323638916, 0.3563663959503174, 0.7065731883049011, 0.01050002034753561, 1.7858705520629883, 0.12691208720207214, 0.4019893705844879, 1.8831506967544556, -1.3477590084075928, -1.2704850435256958, 0.969396710395813, -1.1731233596801758, 1.9436211585998535, -0.4136189818382263, -0.747454822063446, 1.922942042350769, 1.4805147647857666, 1.8675589561462402, 0.9060446619987488, -0.8612256646156311, 1.910064935684204, -0.26800337433815, 0.8024563789367676, 0.9472519755363464, -0.15501008927822113, 0.6140793561935425, 0.922206699848175]
}
},
"scale": {
"dtype": "float32",
"shape": [3],
"data": { "kind": "values", "values": [0.37642553448677063, -1.0994007587432861, 0.29823818802833557] }
},
"b": {
"dtype": "float32",
"shape": [3],
"data": { "kind": "values", "values": [1.3263858556747437, -0.694567859172821, -0.14963454008102417] }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 4, 5] } },
"provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_instancenorm_epsilon" }
},
{
"name": "empty_zero_dim",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": { "dtype": "float32", "shape": [0, 4, 32, 32], "data": { "kind": "values", "values": [] } },
"scale": { "dtype": "float32", "shape": [4], "data": { "kind": "constant", "value": 1.0 } },
"b": { "dtype": "float32", "shape": [4], "data": { "kind": "constant", "value": 0.0 } }
},
"outputs": { "output": { "dtype": "float32", "shape": [0, 4, 32, 32], "tolerance": 0 } }
},
{
"name": "f16_vec4_cnn_1x32x64x64",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [1, 32, 64, 64],
"data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.19, "scale": 0.5 }
},
"scale": {
"dtype": "float16",
"shape": [32],
"data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.13, "scale": 0.4, "offset": 1.0 }
},
"b": {
"dtype": "float16",
"shape": [32],
"data": { "kind": "fillFloat32", "sinStep": 0.07, "cosStep": 0.17, "scale": 0.25 }
}
},
"outputs": {
"output": { "dtype": "float16", "shape": [1, 32, 64, 64], "tolerance": 0.005, "relTolerance": 0.005 }
}
},
{
"name": "f16_scalar_oddspatial_1x64x15x17",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [1, 64, 15, 17],
"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.29, "scale": 0.5 }
},
"scale": {
"dtype": "float16",
"shape": [64],
"data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.11, "scale": 0.4, "offset": 1.0 }
},
"b": {
"dtype": "float16",
"shape": [64],
"data": { "kind": "fillFloat32", "sinStep": 0.05, "cosStep": 0.23, "scale": 0.25 }
}
},
"outputs": {
"output": { "dtype": "float16", "shape": [1, 64, 15, 17], "tolerance": 0.006, "relTolerance": 0.006 }
}
},
{
"name": "f16_vec4_rank3_2x32x1024_eps1e3",
"attrs": { "epsilon": 0.001 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [2, 32, 1024],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.21, "scale": 0.5 }
},
"scale": {
"dtype": "float16",
"shape": [32],
"data": { "kind": "fillFloat32", "sinStep": 0.29, "cosStep": 0.11, "scale": 0.4, "offset": 1.0 }
},
"b": {
"dtype": "float16",
"shape": [32],
"data": { "kind": "fillFloat32", "sinStep": 0.07, "cosStep": 0.19, "scale": 0.25 }
}
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 32, 1024], "tolerance": 0.005, "relTolerance": 0.005 } }
},
{
"name": "f32_vec4_negscale_largeeps_1x8x16x16",
"attrs": { "epsilon": 0.2 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 8, 16, 16],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.21, "scale": 0.7 }
},
"scale": {
"dtype": "float32",
"shape": [8],
"data": { "kind": "values", "values": [1.5, -0.5, 2.0, -1.0, 0.25, -2.5, 1.0, -0.75] }
},
"b": {
"dtype": "float32",
"shape": [8],
"data": { "kind": "values", "values": [0.0, 1.0, -1.0, 0.5, -0.25, 2.0, -2.0, 0.75] }
}
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 8, 16, 16], "tolerance": 0.00001 } }
},
{
"name": "f32_splitk_2plane_huge_1x2x131072",
"attrs": { "epsilon": 0.000001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 131072],
"data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.5 }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.5, -0.75] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.25, -0.5] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 131072], "tolerance": 0.0001 } }
},
{
"name": "empty_zero_spatial_dim_1x4x3x0",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": { "dtype": "float32", "shape": [1, 4, 3, 0], "data": { "kind": "values", "values": [] } },
"scale": { "dtype": "float32", "shape": [4], "data": { "kind": "constant", "value": 1.0 } },
"b": { "dtype": "float32", "shape": [4], "data": { "kind": "constant", "value": 0.0 } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 4, 3, 0], "tolerance": 0 } }
},
{
"name": "empty_zero_channels",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": { "dtype": "float32", "shape": [2, 0, 4, 4], "data": { "kind": "values", "values": [] } },
"scale": { "dtype": "float32", "shape": [0], "data": { "kind": "values", "values": [] } },
"b": { "dtype": "float32", "shape": [0], "data": { "kind": "values", "values": [] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 0, 4, 4], "tolerance": 0 } }
},
{
"name": "rank6_vec4_general_spatial_flatten_1x2x2x2x2x2",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2, 2],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.21 }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.5, -0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.25, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2, 2, 2], "tolerance": 0.000002 } }
},
{
"name": "rank7_spatial_flatten",
"provenance": {
"source": "onnx spec: InstanceNormalization accepts N x C x D1 x ... x Dn",
"notes": "Exercises instance normalization over a rank-7 tensor using the flattened spatial extent for each batch/channel row."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2, 2, 2],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.21 }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.5, -0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.25, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2, 2, 2, 2], "tolerance": 0.000002 } }
},
{
"name": "rank5_scalar_nosg_oddspatial_2x3x3x3x3",
"attrs": { "epsilon": 0.001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [2, 3, 3, 3, 3],
"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.23 }
},
"scale": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [1.0, -2.0, 0.5] } },
"b": { "dtype": "float32", "shape": [3], "data": { "kind": "values", "values": [0.5, -1.0, 2.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 3, 3, 3], "tolerance": 0.000004 } }
},
{
"name": "rank8_spatial_flatten",
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2, 2, 2, 2],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.27 }
},
"scale": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [1.5, -0.5] } },
"b": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [0.25, -1.0] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2, 2, 2, 2, 2], "tolerance": 0.000002 } }
},
{
"name": "split_stats_spatial_65536_f16",
"provenance": {
"notes": "float16 on the split-statistics rungs, which were gated to float32 until the partials pass learned to widen its packed load and the apply pass to narrow its packed store. A spatial extent of SPLIT_STATS_MIN_SPATIAL that is also a multiple of four leaves both the vec4 and the scalar rung eligible, so one case renders both."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [1, 1, 65536],
"data": { "kind": "cycle", "values": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6] }
},
"scale": { "dtype": "float16", "shape": [1], "data": { "kind": "constant", "value": 1.0 } },
"b": { "dtype": "float16", "shape": [1], "data": { "kind": "constant", "value": 0.0 } }
},
"outputs": { "output": { "dtype": "float16", "shape": [1, 1, 65536], "tolerance": 0.03 } }
},
{
"name": "batched_planes_vec4_p256_s64_f16",
"provenance": {
"notes": "float16 on the batched-planes path uses 2x128 planes of 64 elements, giving 16 lanes per plane and 16 planes per workgroup. This checks half-precision storage across the batched normalization and apply stages."
},
"attrs": { "epsilon": 0.00001 },
"inputs": {
"input": {
"dtype": "float16",
"shape": [2, 128, 64],
"data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.029, "scale": 0.5 }
},
"scale": { "dtype": "float16", "shape": [128], "data": { "kind": "constant", "value": 1.0 } },
"b": { "dtype": "float16", "shape": [128], "data": { "kind": "constant", "value": 0.0 } }
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 128, 64], "tolerance": 0.03 } }
}
]
}