Xenova's picture
Xenova HF Staff
sync 4385228f788d
a351662 verified
Raw History Blame
148 kB
{ "fixtureArrays": { "dp4a_s8_pattern": [-128, 127, 0, -1, 56, -77, 3, 100, -100, 42, -5, 19, -64, 88, -33, 7, 125, -90], "dp4a_u8_pattern": [0, 255, 128, 7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5], "dp4a_u8u8_k64_no_zero_points_input_b": [7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5, 0, 255, 128], "dp4a_s8s8_k260_both_zero_points_tails_input_b": [-77, 3, 100, -100, 42, -5, 19, -64, 88, -33, 7, 125, -90, -128, 127, 0, -1, 56], "dp4a_u8u8_k260_both_zero_points_tails_input_b": [64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5, 0, 255, 128, 7, 200, 31, 129], "dp4a_tail_k130_rank2_u8u8_scalar_zp_exact_input_a": [0, 255, 121, 7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5], "dp4a_gemv_no_zero_s8s8_m1_k64_n512_input_b": [2, -1, 3, -2, 1, 4, -3, 2, -5, 6, 0, -4, 3, 1, -2, 5, -1], "tiled_matrix_u8_cycle13": [0, 255, 1, 254, 128, 127, 33, 200, 77, 9, 171, 64, 250], "tiled_matrix_u8_cycle17": [255, 3, 0, 129, 250, 66, 126, 1, 199, 88, 254, 17, 140, 31, 255, 0, 93], "tiled_matrix_s8_cycle19": [-128, 127, 0, -1, 56, -77, 3, 100, -100, 42, -5, 19, -64, 1, -127, 88, -33, 120, 7], "tiled_matrix_s8_cycle23": [7, -11, 63, -64, 126, -127, 4, 91, -37, 18, -2, 55, -83, 32, 1, -99, -128, 127, 0, -50, 21, 101, -7], "ort_2d_s8s8_input_b": [5, -3, 7, 8, -6, -8, -3, 6, 7, 9, 9, -5, 8, 7, -6, 7], "ort_u8s8_per_column_rank2_zero_point_input_b": [0, -8, 2, 3, -11, -13, -8, 1, 2, 4, 4, -10, 3, 2, -11, 2] }, "cases": [ { "name": "uint8_uint8_scalar_zero_points", "inputs": { "a": { "dtype": "uint8", "shape": [2, 3], "data": { "kind": "values", "values": [130, 129, 128, 127, 126, 125] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [127, 128, 129, 130, 131, 132] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [129] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2] } } }, { "name": "int8_uint8_negative_values", "inputs": { "a": { "dtype": "int8", "shape": [2, 2], "data": { "kind": "values", "values": [-3, -2, 1, 4] } }, "b": { "dtype": "uint8", "shape": [2, 3], "data": { "kind": "values", "values": [10, 20, 30, 40, 50, 60] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-1] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [30] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 3] } } }, { "name": "ort_2d_s8s8", "inputs": { "a": { "dtype": "int8", "shape": [2, 4], "data": { "kind": "values", "values": [-3, 7, 5, -6, 4, -5, 8, 7] } }, "b": { "dtype": "int8", "shape": [4, 4], "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_2d_s8s8_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 4], "tolerance": 0 } }, "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_t" } }, { "name": "uint8_zero_k_dimension_outputs_zero", "inputs": { "a": { "dtype": "uint8", "shape": [2, 0], "data": { "kind": "values", "values": [] } }, "b": { "dtype": "uint8", "shape": [0, 3], "data": { "kind": "values", "values": [] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [17] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [23] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 3], "tolerance": 0 } } }, { "name": "int8_nonzero_zero_points_large_accumulator", "inputs": { "a": { "dtype": "int8", "shape": [2, 4], "data": { "kind": "values", "values": [127, -128, 64, -64, -1, 2, -3, 4] } }, "b": { "dtype": "int8", "shape": [4, 2], "data": { "kind": "values", "values": [-128, 127, 64, -64, 32, -32, -16, 16] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-3] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } } }, { "name": "ort_empty_m_dimension", "inputs": { "a": { "dtype": "uint8", "shape": [0, 3], "data": { "kind": "values", "values": [] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [1, 4, 2, 5, 3, 6] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [12] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [0, 2], "tolerance": 0 } }, "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_2D_empty_input" } }, { "name": "ort_1x1_u8u8_scalar_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger" }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1], "data": { "kind": "values", "values": [11] } }, "b": { "dtype": "uint8", "shape": [1, 1], "data": { "kind": "values", "values": [13] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [12] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [12] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 1], "tolerance": 0 } } }, { "name": "ort_u8u8_zero_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_WithZero_ZeroPoint" }, "inputs": { "a": { "dtype": "uint8", "shape": [4, 3], "data": { "kind": "values", "values": [11, 7, 3, 10, 6, 2, 9, 5, 1, 8, 4, 0] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [1, 4, 2, 5, 3, 6] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [4, 2], "tolerance": 0 } } }, { "name": "ort_int8_uint8_2d_zero_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_2D" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 3], "data": { "kind": "values", "values": [-3, 7, 5, 4, -5, 8] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [5, 12, 7, 2, 9, 6] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } } }, { "name": "ort_int8_uint8_2d_omitted_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_2D" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 3], "data": { "kind": "values", "values": [-3, 7, 5, 4, -5, 8] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [5, 12, 7, 2, 9, 6] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } } }, { "name": "only_b_zero_point_present", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Covers ONNX optional-input behavior with a_zero_point omitted and b_zero_point supplied." }, "inputs": { "a": { "dtype": "uint8", "shape": [2, 3], "data": { "kind": "values", "values": [2, 5, 9, 11, 17, 23] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [3, 7, 13, 19, 29, 31] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [10] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } } }, { "name": "only_a_zero_point_present", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Covers ONNX optional-input behavior with b_zero_point omitted and a_zero_point supplied." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 3], "data": { "kind": "values", "values": [-9, -1, 6, 13, -7, 4] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [5, 12, 7, 2, 9, 6] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } } }, { "name": "ort_int8_uint8_2d_nonzero_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_2D_WithZeroPoints" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 3], "data": { "kind": "values", "values": [-3, 7, 5, 4, -5, 8] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [15, 22, 17, 12, 19, 16] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [2] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [10] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } } }, { "name": "rank1_only_b_zero_point_present", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Covers rank-1 dot product optional-input behavior with a_zero_point omitted and b_zero_point supplied." }, "inputs": { "a": { "dtype": "uint8", "shape": [3], "data": { "kind": "values", "values": [10, 20, 30] } }, "b": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [1, -1, 2] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "tolerance": 0 } } }, { "name": "rank1_only_a_zero_point_present", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Covers rank-1 dot product optional-input behavior with b_zero_point omitted and a_zero_point supplied." }, "inputs": { "a": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [-1, 2, -3] } }, "b": { "dtype": "uint8", "shape": [3], "data": { "kind": "values", "values": [10, 20, 30] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "tolerance": 0 } } }, { "name": "rank1_zero_points_omitted", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Completes the rank-1 dot-product presence matrix with both zero points omitted and defaulting to zero." }, "inputs": { "a": { "dtype": "uint8", "shape": [3], "data": { "kind": "values", "values": [1, 2, 3] } }, "b": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [4, 5, 6] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "data": { "kind": "values", "values": [32] }, "tolerance": 0 } } }, { "name": "ort_1d_dot_u8u8_rank0_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_1D_Vector_DotProduct" }, "inputs": { "a": { "dtype": "uint8", "shape": [4], "data": { "kind": "values", "values": [1, 2, 3, 4] } }, "b": { "dtype": "uint8", "shape": [4], "data": { "kind": "values", "values": [5, 6, 7, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "tolerance": 0 } } }, { "name": "ort_1d_dot_s8s8_rank0_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_1D_Vector_DotProduct_int8" }, "inputs": { "a": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [1, -2, 3] } }, "b": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [4, 5, -6] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "tolerance": 0 } } }, { "name": "ort_1d_dot_u8s8_rank0_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_1D_Vector_DotProduct_uint8_int8" }, "inputs": { "a": { "dtype": "uint8", "shape": [3], "data": { "kind": "values", "values": [10, 20, 30] } }, "b": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [1, -1, 2] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "tolerance": 0 } } }, { "name": "ort_1d_dot_s8u8_rank0_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_1D_Vector_DotProduct_int8_uint8" }, "inputs": { "a": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [-1, 2, -3] } }, "b": { "dtype": "uint8", "shape": [3], "data": { "kind": "values", "values": [10, 20, 30] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [], "tolerance": 0 } } }, { "name": "ort_int8_uint8_batched_nd_by_nd", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_A_ND_B_ND" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 3], "data": { "kind": "cycle", "values": [1, -2, 3, -1, 4, -2] } }, "b": { "dtype": "uint8", "shape": [2, 3, 2], "data": { "kind": "cycle", "values": [10, 20, 30, 40, 50, 60] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 2], "data": { "kind": "values", "values": [100, 120, 10, 20, 100, 120, 10, 20] }, "tolerance": 0 } } }, { "name": "ort_int8_uint8_batched_nd_by_2d", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_A_ND_B_2D" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 3], "data": { "kind": "values", "values": [1, -2, 3, -1, 4, -2, 2, 0, -1, 0, 3, 1] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [10, 20, 30, 40, 50, 60] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 2], "data": { "kind": "values", "values": [100, 120, 10, 20, -30, -20, 140, 180] }, "tolerance": 0 } } }, { "name": "batched_nd_by_2d_no_zero_points", "provenance": { "notes": "Both zero points are omitted for an A-rank-3 by B-rank-2 product, so the ONNX default zero points apply." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 3], "data": { "kind": "values", "values": [1, -2, 3, -1, 4, -2, 2, 0, -1, 0, 3, 1] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [10, 20, 30, 40, 50, 60] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 2], "data": { "kind": "values", "values": [100, 120, 10, 20, -30, -20, 140, 180] }, "tolerance": 0 } } }, { "name": "batched_nd_by_2d_a_zero_point_only", "provenance": { "notes": "A-rank-3 by B-rank-2 with only the A zero point supplied, so the B zero point takes the ONNX default of 0." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 3], "data": { "kind": "values", "values": [1, -2, 3, -1, 4, -2, 2, 0, -1, 0, 3, 1] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [10, 20, 30, 40, 50, 60] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 2], "data": { "kind": "values", "values": [10, 0, -80, -100, -120, -140, 50, 60] }, "tolerance": 0 } } }, { "name": "ort_u8s8_per_column_rank2_zero_point", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_PerColumn_ND", "notes": "Rank-2 slice of ORT's per-column zero-point case." }, "inputs": { "a": { "dtype": "uint8", "shape": [2, 4], "data": { "kind": "values", "values": [125, 135, 133, 122, 132, 123, 136, 135] } }, "b": { "dtype": "int8", "shape": [4, 4], "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_u8s8_per_column_rank2_zero_point_input_b" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [133] } }, "b_zero_point": { "dtype": "int8", "shape": [4], "data": { "kind": "values", "values": [1, -2, 2, -1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 4], "data": { "kind": "values", "values": [-38, -18, 123, -61, 128, 142, 80, -45] }, "tolerance": 0 } } }, { "name": "ort_u8s8_per_column_batched_zero_point", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_PerColumn_ND" }, "inputs": { "a": { "dtype": "uint8", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [125, 135, 133, 122, 132, 123, 136, 135] } }, "b": { "dtype": "int8", "shape": [2, 4, 4], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/ort_u8s8_per_column_rank2_zero_point_input_b" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [133] } }, "b_zero_point": { "dtype": "int8", "shape": [2, 1, 4], "data": { "kind": "values", "values": [1, -2, 2, -1, 2, -4, -1, 0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 4], "data": { "kind": "values", "values": [-38, -18, 123, -61, 128, 142, 80, -45, -21, -52, 72, -44, 134, 130, 62, -39] }, "tolerance": 0 } } }, { "name": "ort_s8u8_per_column_batched_zero_point", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_PerColumn_ND" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 2], "data": { "kind": "values", "values": [1, -2, 3, 4, -1, 5, 2, -3] } }, "b": { "dtype": "uint8", "shape": [2, 2, 3], "data": { "kind": "values", "values": [10, 20, 30, 1, 2, 3, 4, 5, 6, 7, 8, 9] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [2, 1, 3], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 3], "data": { "kind": "values", "values": [9, 18, 27, 27, 54, 81, 15, 15, 15, -9, -9, -9] }, "tolerance": 0 } } }, { "name": "onnx_backend_matmulinteger", "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_matmulinteger" }, "inputs": { "a": { "dtype": "uint8", "shape": [4, 3], "data": { "kind": "values", "values": [11, 7, 3, 10, 6, 2, 9, 5, 1, 8, 4, 0] } }, "b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [1, 4, 2, 5, 3, 6] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [12] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [4, 2], "tolerance": 0 } } }, { "name": "dp4a_u8u8_k64_no_zero_points", "inputs": { "a": { "dtype": "uint8", "shape": [5, 64], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "uint8", "shape": [64, 9], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8u8_k64_no_zero_points_input_b" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [5, 9], "tolerance": 0 } } }, { "name": "dp4a_u8s8_k8_a_zero_point_only", "inputs": { "a": { "dtype": "uint8", "shape": [3, 8], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [8, 5], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [131] } } }, "outputs": { "y": { "dtype": "int32", "shape": [3, 5], "tolerance": 0 } } }, { "name": "dp4a_s8u8_k8_b_zero_point_only", "inputs": { "a": { "dtype": "int8", "shape": [3, 8], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b": { "dtype": "uint8", "shape": [8, 5], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [200] } } }, "outputs": { "y": { "dtype": "int32", "shape": [3, 5], "tolerance": 0 } } }, { "name": "dp4a_u8s8_k12_both_zero_points", "inputs": { "a": { "dtype": "uint8", "shape": [4, 12], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [12, 6], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [117] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-9] } } }, "outputs": { "y": { "dtype": "int32", "shape": [4, 6], "tolerance": 0 } } }, { "name": "dp4a_s8s8_k260_both_zero_points_tails", "inputs": { "a": { "dtype": "int8", "shape": [9, 260], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b": { "dtype": "int8", "shape": [260, 17], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8s8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [9, 17], "tolerance": 0 } } }, { "name": "dp4a_u8u8_k260_both_zero_points_tails", "inputs": { "a": { "dtype": "uint8", "shape": [9, 260], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "uint8", "shape": [260, 17], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8u8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [9, 17], "tolerance": 0 } } }, { "name": "dp4a_u8u8_k256_no_zero_points_large", "provenance": { "notes": "A compact wide, short-K case exercises the M32/N128/KWords32 packed-dot tile with omitted zero points while keeping the expected int32 output inexpensive to compute." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "uint8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8u8_k64_no_zero_points_input_b" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "DP4A_SHORT_K_MIN_MN": 64, "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_s8s8_medium_k_m64_k96_n128", "provenance": { "notes": "A compact medium-K case exercises the M32/N64 packed-dot reuse tile with signed inputs and exact int32 output." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 96], "data": { "kind": "cycle", "values": [-128, 127, 0, -1, 56, -77, 3, 100, -100, 42, -5, 19, -64, 88, -33, 7] } }, "b": { "dtype": "int8", "shape": [96, 128], "data": { "kind": "cycle", "values": [7, -11, 63, -64, 126, -127, 4, 91, -37, 18, -2, 55, -83, 32, 1, -99] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "DP4A_SHORT_K_MAX": 64, "DP4A_MEDIUM_K_MAX": 128, "DP4A_MEDIUM_K_MIN_MN": 64, "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_u8s8_k256_a_zero_point_only_large", "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [131] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_s8u8_k256_b_zero_point_only_large", "inputs": { "a": { "dtype": "int8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b": { "dtype": "uint8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [200] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_s8s8_k260_both_zero_points_large", "inputs": { "a": { "dtype": "int8", "shape": [65, 260], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b": { "dtype": "int8", "shape": [260, 129], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8s8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 129], "tolerance": 0 } }, "tunables": { "DP4A_LARGE_MIN_M": 64, "DP4A_LARGE_MIN_N": 128, "DP4A_LARGE_MIN_K": 256, "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_rank3_by_rank3_u8s8_k256_large", "inputs": { "a": { "dtype": "uint8", "shape": [2, 64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [2, 256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [131] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 64, 128], "tolerance": 0 } } }, { "name": "dp4a_rank3_by_rank2_u8s8_k256_large", "inputs": { "a": { "dtype": "uint8", "shape": [2, 64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8s8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [131] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 64, 128], "tolerance": 0 } } }, { "name": "ort_s8s8_a_nd_by_2d_scalar_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_t_A_ND" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 4], "data": { "kind": "values", "values": [-3, 7, 5, -6, 4, -5, 8, 7, 7, -4, 3, 6, -4, -5, 5, 7] } }, "b": { "dtype": "int8", "shape": [4, 3], "data": { "kind": "values", "values": [5, -3, 7, 8, -6, -8, -3, 6, 7, 9, 9, -5] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [3] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [4] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 3], "data": { "kind": "values", "values": [-49, -39, 21, -46, 103, 78, -9, 57, 69, -33, 153, 45] }, "tolerance": 0 } } }, { "name": "ort_s8s8_a_nd_by_b_nd_scalar_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_t_A_ND_B_ND" }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [-3, 7, 5, -6, 4, -5, 8, 7] } }, "b": { "dtype": "int8", "shape": [2, 4, 4], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/ort_2d_s8s8_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [5] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [-55, 16, 89, -44, 122, 154, 68, -39] }, "tolerance": 0 } } }, { "name": "ort_s8s8_a_nd_by_b_nd_no_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_t_No_Zero_Point", "notes": "Valid ORT rank-3 by rank-3 MatMulInteger with omitted zero-points." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [-8, 2, 0, -11, -1, -10, 3, 2] } }, "b": { "dtype": "int8", "shape": [2, 4, 4], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/ort_u8s8_per_column_rank2_zero_point_input_b" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [-55, 16, 89, -44, 122, 154, 68, -39] }, "tolerance": 0 } } }, { "name": "ort_s8s8_2d_by_b_nd_scalar_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_t_B_ND", "notes": "Valid ORT rank-2 by rank-3 MatMulInteger broadcast case." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 4], "data": { "kind": "values", "values": [-3, 7, 5, -6, 4, -5, 8, 7] } }, "b": { "dtype": "int8", "shape": [2, 4, 3], "data": { "kind": "cycle", "values": [5, -3, 7, 8, -6, -8, -3, 6, 7, 9, 9, -5] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [1] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 3], "data": { "kind": "cycle", "values": [-45, -61, -11, -20, 103, 68] }, "tolerance": 0 } } }, { "name": "ort_s8s8_a_nd_by_b_nd_a_zero_point_only", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_t_A_Has_Zero_Point", "notes": "Valid ORT rank-3 by rank-3 MatMulInteger with only A zero-point present." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [-3, 7, 5, -6, 4, -5, 8, 7] } }, "b": { "dtype": "int8", "shape": [2, 4, 4], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/ort_u8s8_per_column_rank2_zero_point_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 4], "data": { "kind": "cycle", "values": [-55, 16, 89, -44, 122, 154, 68, -39] }, "tolerance": 0 } } }, { "name": "broadcast_4d_u8u8", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_A_ND_B_ND", "notes": "A compact four-dimensional uint8 MatMulInteger exercises multidimensional batch broadcasting." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 2, 2, 2], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6, 7, 8] } }, "b": { "dtype": "uint8", "shape": [2, 1, 2, 2], "data": { "kind": "values", "values": [1, 0, 0, 1, 2, 1, 1, 2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 2, 2], "tolerance": 0, "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6, 7, 8, 4, 5, 10, 11, 16, 17, 22, 23] } } } }, { "name": "broadcast_4d_u8u8_zero_points", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "test": "MatmulIntegerOpTest.MatMulInteger_int8_uint8_A_ND_B_ND", "notes": "Compact 4D broadcast case with scalar zero-points." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 2, 2, 2], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6, 7, 8] } }, "b": { "dtype": "uint8", "shape": [2, 1, 2, 2], "data": { "kind": "values", "values": [1, 0, 0, 1, 2, 1, 1, 2] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [1] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 2, 2], "tolerance": 0, "data": { "kind": "values", "values": [-1, 0, -3, -2, -5, -4, -7, -6, 0, 1, 2, 3, 4, 5, 6, 7] } } } }, { "name": "dispatch_cliff_mtile_rows_524296", "provenance": { "notes": "524,296 rows ([524296,4] uint8 x [4,2]) with zero points 1 and 2 (65,537 groups of eight rows, more than 65,535); distinct rows make incorrect row indexing observable." }, "inputs": { "a": { "dtype": "uint8", "shape": [524296, 4], "data": { "kind": "cycle", "values": [1, 2, 3, 4, 5, 6, 7] } }, "b": { "dtype": "uint8", "shape": [4, 2], "data": { "kind": "cycle", "values": [2, 0, 1, 3, 4, 1, 2, 5] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "constant", "value": 1 } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "constant", "value": 2 } } }, "outputs": { "y": { "dtype": "int32", "shape": [524296, 2], "tolerance": 0 } } }, { "name": "percol_b_zero_point_k256_u8s8_model_scale", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Per-column signed weight zero points across N=128 with a scalar activation zero point at K=256. Exercises packed rank-2 accumulation and verifies that every output column applies its own zero point." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [130] } }, "b_zero_point": { "dtype": "int8", "shape": [128], "data": { "kind": "cycle", "values": [1, -2, 2, -1, 3, -3, 0, -4, 4, -5, 5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "percol_b_zero_point_no_azp_below_dp4a_floor", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Per-column B zero points ([1, -2, 2]) with no A zero point (defaults to 0) check a compact M=4, K=8, N=3 integer matrix product." }, "inputs": { "a": { "dtype": "uint8", "shape": [4, 8], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [8, 3], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b_zero_point": { "dtype": "int8", "shape": [3], "data": { "kind": "values", "values": [1, -2, 2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [4, 3], "tolerance": 0 } } }, { "name": "percol_b_zero_point_no_azp_k256_u8s8", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Per-column signed weight zero points across N=128 with the activation zero point omitted at K=256. Exercises packed rank-2 accumulation and the default activation zero point of zero, including the unsigned-activation bias fold." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b_zero_point": { "dtype": "int8", "shape": [128], "data": { "kind": "cycle", "values": [1, -2, 2, -1, 3, -3, 0, -4, 4, -5, 5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_percol_no_azp_narrow_m_tile_variable_subgroup", "provenance": { "source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc", "notes": "Per-column B zero points cycling 13 values from -128 to 127, without an A zero point, with M=64 rows, K=256 and N=128 columns, check exact integer output at a narrow row count." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b_zero_point": { "dtype": "int8", "shape": [128], "data": { "kind": "cycle", "values": [-128, 127, 5, -6, 0, 9, -9, 64, -64, 1, -1, 33, -33] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0, "DP4A_LARGE_MIN_M": 64, "DP4A_LARGE_MIN_N": 128, "DP4A_LARGE_MIN_K": 256 } }, { "name": "k258_unaligned_k_scalar_zp_u8u8", "provenance": { "notes": "K=258 is not divisible by four; scalar zero points (a=128, b=127) on uint8 by uint8 operands check that the unaligned reduction tail is included exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 258], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "uint8", "shape": [258, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8u8_k64_no_zero_points_input_b" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "large_accumulator_dp4a_k1024_u8u8_maxmag", "provenance": { "notes": "M=64, K=1024, and N=128 with uint8 operands at magnitude 255 produce large but int32-representable sums; nonzero zero points (3 and 7) verify the exact quantized result." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 1024], "data": { "kind": "cycle", "values": [255, 0, 255, 1, 254, 2, 200, 128, 64, 99, 3, 250, 7, 240, 16, 5] } }, "b": { "dtype": "uint8", "shape": [1024, 128], "data": { "kind": "cycle", "values": [255, 254, 1, 0, 200, 129, 64, 99, 3, 250, 7, 240, 16, 5, 128, 2] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [3] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_rank4_scalar_s8s8_2x2x64x128", "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 64, 128], "data": { "kind": "cycle", "values": [3, -2, 1, 4, -3, 2, -1, 5, -4, 0] } }, "b": { "dtype": "int8", "shape": [2, 2, 128, 64], "data": { "kind": "cycle", "values": [2, -1, 3, -2, 1, 4, -3, 2] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [1] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 64, 64] } } }, { "name": "dp4a_rank4_no_zero_s8s8_2x2x64x128", "inputs": { "a": { "dtype": "int8", "shape": [2, 2, 64, 128], "data": { "kind": "cycle", "values": [3, -2, 1, 4, -3, 2, -1, 5, -4, 0] } }, "b": { "dtype": "int8", "shape": [2, 2, 128, 64], "data": { "kind": "cycle", "values": [2, -1, 3, -2, 1, 4, -3, 2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 64, 64] } } }, { "name": "dp4a_gemv_m1_u8s8_k257_n512_scalar_zp_tail", "provenance": { "notes": "An M=1 int8 GEMV with K=257 exercises the tileM=1 DP4A full-word loop and its one-lane scalar tail." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 257], "data": { "kind": "cycle", "values": [0, 255, 128, 7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5, 222, 44, 90, 17] } }, "b": { "dtype": "int8", "shape": [257, 512], "data": { "kind": "cycle", "values": [-128, 127, 0, 63, -64, 31, -32, 7, -100, 50, -7, 88, -1, 120, -45, 15, 3, -99, 66, -17, 42, -88, 11, -120] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 512], "tolerance": 0 } } }, { "name": "dp4a_gemv_m1_u8u8_k128_n768_no_zp", "provenance": { "notes": "M=1 int8 decode GEMV, no zero points: exercises the tileM=1 dp4a GEMV no-zero-point path." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 128], "data": { "kind": "cycle", "values": [0, 255, 128, 7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240] } }, "b": { "dtype": "uint8", "shape": [128, 768], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 768], "tolerance": 0 } } }, { "name": "empty_n_dimension_outputs_empty_u8u8", "inputs": { "a": { "dtype": "uint8", "shape": [2, 3], "data": { "kind": "values", "values": [11, 7, 3, 10, 6, 2] } }, "b": { "dtype": "uint8", "shape": [3, 0], "data": { "kind": "values", "values": [] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [12] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 0], "data": { "kind": "values", "values": [] }, "tolerance": 0 } } }, { "name": "dp4a_unaligned_n130_percol_b_zp_u8s8_k256", "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [130] } }, "b_zero_point": { "dtype": "int8", "shape": [130], "data": { "kind": "cycle", "values": [1, -2, 2, -1, 3, -3, 0, -4, 4, -5, 5] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 130], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_partial_m63_n130_tile_edge_s8s8_k256", "inputs": { "a": { "dtype": "int8", "shape": [63, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b": { "dtype": "int8", "shape": [256, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8s8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [63, 130], "tolerance": 0 } } }, { "name": "kfloor_k124_naive_rank2_both_zp_correctness", "inputs": { "a": { "dtype": "uint8", "shape": [9, 124], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [124, 17], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [117] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-9] } } }, "outputs": { "y": { "dtype": "int32", "shape": [9, 17], "tolerance": 0 } } }, { "name": "dp4a_k124_rank2_no_zero_points_exact", "provenance": { "notes": "uint8 [64,124] times int8 [124,128] with no zero points: a realistic projection with K = 124 (a multiple of 4 but not of 8) and exact int32 results. Its tunables set the minimum invocation count for the exact-matrix path to 0." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 124], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [124, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_tail_k130_rank2_u8u8_scalar_zp_exact", "provenance": { "notes": "Reduction length 130 leaves two elements after complete four-element groups; scalar zero points must produce the exact integer result." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_tail_k130_rank2_u8u8_scalar_zp_exact_input_a" } } }, "b": { "dtype": "uint8", "shape": [130, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8u8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [121] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [117] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_tail_k131_rank2_s8s8_scalar_zp_exact", "provenance": { "notes": "Reduction length 131 leaves three elements after complete four-element groups; signed operands and scalar zero points must produce the exact integer result." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 131], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b": { "dtype": "int8", "shape": [131, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8s8_k260_both_zero_points_tails_input_b" } } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "dp4a_tail_k129_batched3_by_rank2_exact", "provenance": { "notes": "Compact integer matrix product with a one-element reduction tail and exact output." }, "inputs": { "a": { "dtype": "uint8", "shape": [2, 8, 129], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_tail_k130_rank2_u8u8_scalar_zp_exact_input_a" } } }, "b": { "dtype": "int8", "shape": [129, 512], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [121] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-4] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 8, 512], "tolerance": 0 } } }, { "name": "dp4a_tail_k63_rank2_u8s8_scalar_zp_exact", "provenance": { "notes": "K=63 exercises exact packed-tail handling in the 32<=K<128 DP4A range." }, "inputs": { "a": { "dtype": "uint8", "shape": [16, 63], "data": { "kind": "cycle", "values": [0, 255, 121, 7, 200, 31] } }, "b": { "dtype": "int8", "shape": [63, 512], "data": { "kind": "cycle", "values": [-128, 127, 0, -1, 56, -77] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [121] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-4] } } }, "outputs": { "y": { "dtype": "int32", "shape": [16, 512], "tolerance": 0 } } }, { "name": "rank3_b_zero_point_only", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises a scalar b_zero_point on batched rank-3 inputs while a_zero_point independently defaults to zero." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [1, 2, 1], "data": { "kind": "values", "values": [4, 5] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 1, 1], "data": { "kind": "values", "values": [18] }, "tolerance": 0 } } }, { "name": "rank3_batched_per_column_zero_point_without_a_zero_point", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises an N-D per-column b_zero_point while a_zero_point independently defaults to zero." }, "inputs": { "a": { "dtype": "uint8", "shape": [2, 1, 2], "data": { "kind": "values", "values": [2, 3, 2, 3] } }, "b": { "dtype": "uint8", "shape": [2, 2, 1], "data": { "kind": "values", "values": [4, 5, 6, 7] } }, "b_zero_point": { "dtype": "uint8", "shape": [2, 1, 1], "data": { "kind": "values", "values": [1, 2] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 1, 1], "data": { "kind": "values", "values": [18, 23] }, "tolerance": 0 } } }, { "name": "rank2_by_rank3_zero_points_omitted", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises rank-2 by rank-3 broadcasting with both zero points omitted." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [2, 2, 1], "data": { "kind": "values", "values": [4, 5, 6, 7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 1, 1], "data": { "kind": "values", "values": [23, 33] }, "tolerance": 0 } } }, { "name": "rank2_by_rank3_a_zero_point_only", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises rank-2 by rank-3 broadcasting with only a_zero_point present." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [2, 2, 1], "data": { "kind": "values", "values": [4, 5, 6, 7] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 1, 1], "data": { "kind": "values", "values": [14, 20] }, "tolerance": 0 } } }, { "name": "rank2_by_rank3_b_zero_point_only", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises rank-2 by rank-3 broadcasting with only b_zero_point present." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [2, 2, 1], "data": { "kind": "values", "values": [4, 5, 6, 7] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 1, 1], "data": { "kind": "values", "values": [18, 28] }, "tolerance": 0 } } }, { "name": "rank2_by_rank3_both_zero_points", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Completes the rank-2 by rank-3 optional-presence matrix with both scalar zero points present." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [2, 2, 1], "data": { "kind": "values", "values": [4, 5, 6, 7] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 1, 1], "data": { "kind": "values", "values": [11, 17] }, "tolerance": 0 } } }, { "name": "rank4_a_zero_point_only", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises a rank-4 product with only a_zero_point present." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1, 1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [1, 1, 2, 1], "data": { "kind": "values", "values": [4, 5] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 1, 1, 1], "data": { "kind": "values", "values": [14] }, "tolerance": 0 } } }, { "name": "rank4_b_zero_point_only", "provenance": { "source": "ONNX MatMulInteger-10 optional-input contract", "notes": "Exercises a rank-4 product with only b_zero_point present." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1, 1, 2], "data": { "kind": "values", "values": [2, 3] } }, "b": { "dtype": "uint8", "shape": [1, 1, 2, 1], "data": { "kind": "values", "values": [4, 5] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 1, 1, 1], "data": { "kind": "values", "values": [18] }, "tolerance": 0 } } }, { "name": "dp4a_gemv_no_zero_s8s8_m1_k64_n512", "provenance": { "notes": "A signed single-row matrix product with K=64 and N=512 omits both zero points; its result must match direct integer accumulation." }, "inputs": { "a": { "dtype": "int8", "shape": [1, 64], "data": { "kind": "cycle", "values": [3, -2, 1, 4, -3, 2, -1, 5, -4, 0, 7, -6, 2] } }, "b": { "dtype": "int8", "shape": [64, 512], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_gemv_no_zero_s8s8_m1_k64_n512_input_b" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 512], "tolerance": 0 } } }, { "name": "dp4a_gemv_b_per_column_zero_u8u8_m1_k64_n512", "provenance": { "notes": "An unsigned B tensor uses per-column zero points that vary on a period coprime with N=512. Each zero point must be widened and indexed by its output column." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 64], "data": { "kind": "cycle", "values": [130, 129, 128, 127, 126, 200, 3, 255, 0, 64, 99] } }, "b": { "dtype": "uint8", "shape": [64, 512], "data": { "kind": "cycle", "values": [127, 128, 129, 130, 131, 7, 250, 255, 0, 64, 200, 3, 90] } }, "b_zero_point": { "dtype": "uint8", "shape": [512], "data": { "kind": "cycle", "values": [128, 127, 129, 0, 255, 64, 200] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 512], "tolerance": 0 } } }, { "name": "dp4a_tail_no_zero_s8s8_m1_k66_n512", "provenance": { "notes": "K=66 leaves a two-lane reduction tail. Signed inputs with both zero points omitted exercise that tail without either running-sum correction." }, "inputs": { "a": { "dtype": "int8", "shape": [1, 66], "data": { "kind": "cycle", "values": [3, -2, 1, 4, -3, 2, -1, 5, -4, 0, 7, -6, 2] } }, "b": { "dtype": "int8", "shape": [66, 512], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_gemv_no_zero_s8s8_m1_k64_n512_input_b" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 512], "tolerance": 0 } } }, { "name": "exact_integer_partial_k255_uint8_maxmag", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 255], "data": { "kind": "cycle", "values": [255] } }, "b": { "dtype": "uint8", "shape": [255, 32], "data": { "kind": "cycle", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 32], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_partial_k256_uint8_maxmag", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": [255] } }, "b": { "dtype": "uint8", "shape": [256, 32], "data": { "kind": "cycle", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 32], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_partial_k259_uint8_maxmag", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 259], "data": { "kind": "cycle", "values": [255] } }, "b": { "dtype": "uint8", "shape": [259, 32], "data": { "kind": "cycle", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 32], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_partial_k1025_int8_maxmag", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 1025], "data": { "kind": "cycle", "values": [127] } }, "b": { "dtype": "int8", "shape": [1025, 32], "data": { "kind": "cycle", "values": [127] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-128] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-128] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 32], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_partial_k33027_uint8_maxmag", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 33027], "data": { "kind": "cycle", "values": [255] } }, "b": { "dtype": "uint8", "shape": [33027, 32], "data": { "kind": "cycle", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 32], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_partial_k513_m65_n65_column_zero_points", "provenance": { "notes": "Mixed signedness, per-column zero points and M = N = 65, K = 513 must stay exact." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 513], "data": { "kind": "cycle", "values": [0, 255, 128, 1, 254] } }, "b": { "dtype": "int8", "shape": [513, 65], "data": { "kind": "cycle", "values": [-128, 127, 0, -1, 1] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [17] } }, "b_zero_point": { "dtype": "int8", "shape": [65], "data": { "kind": "cycle", "values": [-128, 127, 3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 65], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_partial_k1041_int8_no_zp_signed_outputs", "provenance": { "notes": "Without zero points, signed-byte bounds permit 1024-term exact f32 partials. The odd final sums +/-16790289 are not representable in f32; converting each partial before the int32 addition preserves both signs exactly." }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 }, "inputs": { "a": { "dtype": "int8", "shape": [64, 1041], "data": { "kind": "constant", "value": 127 } }, "b": { "dtype": "int8", "shape": [1041, 64], "data": { "kind": "cycle", "values": [127, -127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 64], "tolerance": 0 } } }, { "name": "exact_integer_storage_growth_m32_k128_n65", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [32, 128], "data": { "kind": "cycle", "values": [255] } }, "b": { "dtype": "uint8", "shape": [128, 65], "data": { "kind": "cycle", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [32, 65], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_integer_storage_growth_m48_k259_n65", "provenance": { "notes": "Maximum adjusted-byte products across exact-f32 partial-sum boundaries. K=33027 also crosses signed-int32 overflow; the integer result must wrap exactly." }, "inputs": { "a": { "dtype": "uint8", "shape": [48, 259], "data": { "kind": "cycle", "values": [255] } }, "b": { "dtype": "uint8", "shape": [259, 65], "data": { "kind": "cycle", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [48, 65], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m65_k33_n33_a0_bnone", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m65_k33_n33_a0_bscalar", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m65_k33_n33_a0_bcolumn", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m65_k33_n33_a1_bnone", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m65_k33_n33_a1_bscalar", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m65_k33_n33_a1_bcolumn", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [65, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m129_k65_n63_a0_bnone", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 65], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [65, 63], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 63], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m129_k65_n63_a0_bscalar", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 65], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [65, 63], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 63], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m129_k65_n63_a0_bcolumn", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 65], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [65, 63], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "b_zero_point": { "dtype": "int8", "shape": [63], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 63], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m129_k65_n63_a1_bnone", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 65], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [65, 63], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 63], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m129_k65_n63_a1_bscalar", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 65], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [65, 63], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 63], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_padding_m129_k65_n63_a1_bcolumn", "provenance": { "notes": "Exact operand conversion with simultaneous M/K/N padding; per-column zero points and scales vary independently. Integer partials and requantization follow the exact integer contract." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 65], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [65, 63], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [63], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 63], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m15_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [15, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [15, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m16_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [16, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [16, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m17_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [17, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [17, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m31_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [31, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [31, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m32_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [32, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [32, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m33_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [33, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [33, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m47_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [47, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [47, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m48_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [48, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [48, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m49_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [49, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [49, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_precast_row_band_m63_k33_n33", "provenance": { "notes": "M is at or next to a multiple of 16, K = N = 33 is one more than 32 and per-column zero points vary." }, "inputs": { "a": { "dtype": "uint8", "shape": [63, 33], "data": { "kind": "cycle", "values": [109, 151, 128, 137, 102, 165, 124] } }, "b": { "dtype": "int8", "shape": [33, 33], "data": { "kind": "cycle", "values": [-9, 7, -3, 12, 5, -11, 2, 1, -6, 4, 8] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [33], "data": { "kind": "cycle", "values": [-3, 2, 7, -5, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [63, 33], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_portable_m63_k255_n35", "provenance": { "notes": "Exact partial-sum and row-reuse boundaries, signed and unsigned extremes, column zero points, and simultaneous padded axes." }, "inputs": { "a": { "dtype": "uint8", "shape": [63, 255], "data": { "kind": "cycle", "values": [0, 255, 17, 239, 128, 1, 254] } }, "b": { "dtype": "int8", "shape": [255, 35], "data": { "kind": "cycle", "values": [-128, 127, -127, 63, -64, 0, 126] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [255] } }, "b_zero_point": { "dtype": "int8", "shape": [35], "data": { "kind": "cycle", "values": [-128, 127, 0, -111, 111] } } }, "outputs": { "y": { "dtype": "int32", "shape": [63, 35], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_portable_m64_k256_n35", "provenance": { "notes": "Exact partial-sum and row-reuse boundaries, signed and unsigned extremes, column zero points, and simultaneous padded axes." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 256], "data": { "kind": "cycle", "values": [0, 255, 17, 239, 128, 1, 254] } }, "b": { "dtype": "uint8", "shape": [256, 35], "data": { "kind": "cycle", "values": [0, 255, 1, 191, 64, 128, 254] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "cycle", "values": [255] } }, "b_zero_point": { "dtype": "uint8", "shape": [35], "data": { "kind": "cycle", "values": [0, 255, 128, 17, 239] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 35], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_portable_m65_k257_n67", "provenance": { "notes": "Exact partial-sum and row-reuse boundaries, signed and unsigned extremes, column zero points, and simultaneous padded axes." }, "inputs": { "a": { "dtype": "int8", "shape": [65, 257], "data": { "kind": "cycle", "values": [-128, 127, -111, 111, 0, -127, 126] } }, "b": { "dtype": "int8", "shape": [257, 67], "data": { "kind": "cycle", "values": [-128, 127, -127, 63, -64, 0, 126] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [67], "data": { "kind": "cycle", "values": [-128, 127, 0, -111, 111] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 67], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "exact_portable_m65_k1025_n35", "provenance": { "notes": "Exact partial-sum and row-reuse boundaries, signed and unsigned extremes, column zero points, and simultaneous padded axes." }, "inputs": { "a": { "dtype": "int8", "shape": [65, 1025], "data": { "kind": "cycle", "values": [-128, 127, -111, 111, 0, -127, 126] } }, "b": { "dtype": "uint8", "shape": [1025, 35], "data": { "kind": "cycle", "values": [0, 255, 1, 191, 64, 128, 254] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "cycle", "values": [127] } }, "b_zero_point": { "dtype": "uint8", "shape": [35], "data": { "kind": "cycle", "values": [0, 255, 128, 17, 239] } } }, "outputs": { "y": { "dtype": "int32", "shape": [65, 35], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0 } }, { "name": "variable_subgroup_packed_crossover_no_zero_points", "provenance": { "notes": "A compact wide integer projection with M=64, K=128, N=128 and no zero points on either operand checks exact int8 output at a tile-aligned shape." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 128], "data": { "kind": "cycle", "values": [-128, 127, -37, 0, 19, 101] } }, "b": { "dtype": "int8", "shape": [128, 128], "data": { "kind": "cycle", "values": [127, -128, 25, -63, 0, 47] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0, "DP4A_LARGE_MIN_M": 32, "DP4A_LARGE_MIN_N": 64, "DP4A_MEDIUM_K_MAX": 64 } }, { "name": "variable_subgroup_packed_crossover_scalar_zero_points", "provenance": { "notes": "Checks exact integer output with both activation and weight zero points." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 128], "data": { "kind": "cycle", "values": [0, 255, 17, 239, 128, 1] } }, "b": { "dtype": "int8", "shape": [128, 128], "data": { "kind": "cycle", "values": [-128, 127, -23, 51, 0, 91] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [127] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } }, "tunables": { "EXACT_MATRIX_MIN_INVOCATIONS": 0, "DP4A_LARGE_MIN_M": 32, "DP4A_LARGE_MIN_N": 64, "DP4A_MEDIUM_K_MAX": 64 } }, { "name": "packed_weights_uint8_uint8_m129_k68_n130_none_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 68], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_uint8_uint8_m129_k68_n130_scalar_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 68], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [133] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [119] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_weights_uint8_uint8_m129_k68_n130_column_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 68], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [133] } }, "b_zero_point": { "dtype": "uint8", "shape": [130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_uint8_int8_m129_k68_n130_none_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 68], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_uint8_int8_m129_k68_n130_scalar_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 68], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [133] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [13] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_weights_uint8_int8_m129_k68_n130_column_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "uint8", "shape": [129, 68], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [133] } }, "b_zero_point": { "dtype": "int8", "shape": [130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_int8_uint8_m129_k68_n130_none_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "int8", "shape": [129, 68], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_int8_uint8_m129_k68_n130_scalar_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "int8", "shape": [129, 68], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-11] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [119] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_weights_int8_uint8_m129_k68_n130_column_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "int8", "shape": [129, 68], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-11] } }, "b_zero_point": { "dtype": "uint8", "shape": [130], "data": { "kind": "cycle", "values": [0, 1, 127, 128, 129, 254, 255, 19, 211] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_int8_int8_m129_k68_n130_none_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "int8", "shape": [129, 68], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_weights_int8_int8_m129_k68_n130_scalar_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "int8", "shape": [129, 68], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-11] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [13] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_weights_int8_int8_m129_k68_n130_column_zero_points", "provenance": { "notes": "Exact signed/unsigned packed-weight arithmetic with a partial K-word tile, a final output-row tile, and a final output-column tile. Scalar and per-column zero points cover both corrections." }, "inputs": { "a": { "dtype": "int8", "shape": [129, 68], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-11] } }, "b_zero_point": { "dtype": "int8", "shape": [130], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } } }, "outputs": { "y": { "dtype": "int32", "shape": [129, 130], "tolerance": 0 } } }, { "name": "packed_b_both_zp_complete_tile_tails", "provenance": { "notes": "Exact packed integer projection with final row, column and K-word tiles, including signed byte endpoints and independently optional zero points." }, "inputs": { "a": { "dtype": "uint8", "shape": [257, 68], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "constant", "value": 119 } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "constant", "value": -13 } } }, "outputs": { "y": { "dtype": "int32", "shape": [257, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_b_a_zp_complete_tile_tails", "provenance": { "notes": "Exact packed integer projection with final row, column and K-word tiles, including signed byte endpoints and independently optional zero points." }, "inputs": { "a": { "dtype": "uint8", "shape": [257, 68], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "constant", "value": 119 } } }, "outputs": { "y": { "dtype": "int32", "shape": [257, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_b_b_zp_complete_tile_tails", "provenance": { "notes": "Exact packed integer projection with final row, column and K-word tiles, including signed byte endpoints and independently optional zero points." }, "inputs": { "a": { "dtype": "uint8", "shape": [257, 68], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "constant", "value": -13 } } }, "outputs": { "y": { "dtype": "int32", "shape": [257, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_b_none_zp_complete_tile_tails", "provenance": { "notes": "Exact packed integer projection with final row, column and K-word tiles, including signed byte endpoints and independently optional zero points." }, "inputs": { "a": { "dtype": "uint8", "shape": [257, 68], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "uint8", "shape": [68, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [257, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16 } }, { "name": "packed_b_column_zp_complete_tile_tails", "provenance": { "notes": "Exact packed integer projection with final row, column and K-word tiles, including signed byte endpoints and independently optional zero points." }, "inputs": { "a": { "dtype": "uint8", "shape": [1025, 68], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_u8_pattern" } } }, "b": { "dtype": "int8", "shape": [68, 130], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/dp4a_s8_pattern" } } }, "b_zero_point": { "dtype": "int8", "shape": [130], "data": { "kind": "cycle", "values": [-17, 0, 19] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1025, 130], "tolerance": 0 } }, "tunables": { "DP4A_TILE_M": 32, "DP4A_TILE_N": 128, "DP4A_K_TILE_WORDS": 16, "DP4A_LARGE_MIN_M": 256, "DP4A_LARGE_MIN_N": 128, "DP4A_LARGE_MIN_K": 64 } }, { "name": "integer_matrix_u8_zero_correction_overflow_column_tail", "provenance": { "notes": "Raw products and row/column sums are zero; K*a0*b0 crosses int32 overflow. Unequal column zero points and a partial matrix K tile require exact wrapped correction." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 33027], "data": { "kind": "cycle", "values": [0] } }, "b": { "dtype": "uint8", "shape": [33027, 3], "data": { "kind": "cycle", "values": [0] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "cycle", "values": [255] } }, "b_zero_point": { "dtype": "uint8", "shape": [3], "data": { "kind": "cycle", "values": [255, 254, 1] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 3], "tolerance": 0 } } }, { "name": "integer_matrix_s8_a_zero_only_three_axis_tail", "provenance": { "notes": "Signed packed-byte operands with only scalar A zero point and simultaneous M/N/K matrix tails." }, "inputs": { "a": { "dtype": "int8", "shape": [17, 35], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "int8", "shape": [35, 19], "data": { "kind": "cycle", "values": [-128, 127, -127, 63, -64, 0, 126, -111] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "cycle", "values": [127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [17, 19], "tolerance": 0 } } }, { "name": "integer_matrix_s8_b_column_only_three_axis_tail", "provenance": { "notes": "Signed packed-byte operands with only per-column B zero points and simultaneous M/N/K matrix tails." }, "inputs": { "a": { "dtype": "int8", "shape": [17, 35], "data": { "kind": "cycle", "values": [-128, -127, -1, 0, 1, 126, 127, -19, 93] } }, "b": { "dtype": "int8", "shape": [35, 19], "data": { "kind": "cycle", "values": [-128, 127, -127, 63, -64, 0, 126, -111] } }, "b_zero_point": { "dtype": "int8", "shape": [19], "data": { "kind": "cycle", "values": [-128, 127, -1, 0, 37] } } }, "outputs": { "y": { "dtype": "int32", "shape": [17, 19], "tolerance": 0 } } }, { "name": "portable_column_grid_limit_u8_k1_n524280", "provenance": { "notes": "M = K = 1 and N = 524280 = 65535 * 8 columns; every int32 output must be exact." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1], "data": { "kind": "cycle", "values": [3] } }, "b": { "dtype": "uint8", "shape": [1, 524280], "data": { "kind": "cycle", "values": [1, 7, 255, 0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 524280], "tolerance": 0 } } }, { "name": "portable_column_grid_tail_u8_k1_n524281", "provenance": { "notes": "One column beyond 65535 eight-column workgroups, with an odd packed-byte tail; column zero must also visit the final output." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1], "data": { "kind": "cycle", "values": [3] } }, "b": { "dtype": "uint8", "shape": [1, 524281], "data": { "kind": "cycle", "values": [1, 7, 255, 0] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 524281], "tolerance": 0 } } }, { "name": "portable_column_grid_tail_s8_per_column_n524281", "provenance": { "notes": "The folded column loop reads distinct signed per-column zero points for every visit, including the final packed-byte tail." }, "inputs": { "a": { "dtype": "int8", "shape": [1, 1], "data": { "kind": "cycle", "values": [-3] } }, "b": { "dtype": "int8", "shape": [1, 524281], "data": { "kind": "cycle", "values": [-128, 7, 127, -11, 0] } }, "b_zero_point": { "dtype": "int8", "shape": [524281], "data": { "kind": "cycle", "values": [-2, 13, -128, 127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [1, 524281], "tolerance": 0 } } }, { "name": "portable_column_grid_tail_rank3_broadcast_batched_zero_point_n524281", "provenance": { "notes": "Broadcast A across two B batches. Batched per-column zero points and the folded right edge remain indexed by batch*N+column." }, "inputs": { "a": { "dtype": "uint8", "shape": [1, 1, 1], "data": { "kind": "cycle", "values": [5] } }, "b": { "dtype": "uint8", "shape": [2, 1, 524281], "data": { "kind": "cycle", "values": [0, 255, 13, 7, 128] } }, "b_zero_point": { "dtype": "uint8", "shape": [2, 1, 524281], "data": { "kind": "cycle", "values": [3, 17, 127, 251] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 1, 524281], "tolerance": 0 } } }, { "name": "portable_column_grid_tail_rank4_broadcast_n524281", "provenance": { "notes": "Two independent broadcast batch axes, scalar signed zero points, and one column beyond the workgroup-grid limit." }, "inputs": { "a": { "dtype": "int8", "shape": [2, 1, 1, 1], "data": { "kind": "cycle", "values": [-7, 11] } }, "b": { "dtype": "int8", "shape": [1, 2, 1, 524281], "data": { "kind": "cycle", "values": [-128, 127, -9, 3, 63] } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "cycle", "values": [-2] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "cycle", "values": [13] } } }, "outputs": { "y": { "dtype": "int32", "shape": [2, 2, 1, 524281], "tolerance": 0 } } }, { "name": "integer_matrix_s8_b_scalar_only_three_axis_tail", "provenance": { "notes": "Only a signed scalar B zero point is present; all three dimensions are partial experimental integer-matrix tiles." }, "inputs": { "a": { "dtype": "int8", "shape": [3, 5], "data": { "kind": "cycle", "values": [-128, -7, 0, 19, 127, 3, -11] } }, "b": { "dtype": "int8", "shape": [5, 7], "data": { "kind": "cycle", "values": [-128, 127, 9, -23, 0, 61, -77, 4] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "cycle", "values": [-9] } } }, "outputs": { "y": { "dtype": "int32", "shape": [3, 7], "tolerance": 0 } } }, { "name": "tiled_matrix_u8u8_scalar_zps_m128_k256_n192", "provenance": { "notes": "8-bit integer matrix products with scalar zero points on both operands, given as rank-0 or one-element tensors. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [128, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "uint8", "shape": [256, 192], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [131] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [128, 192], "tolerance": 0 } } }, { "name": "tiled_matrix_u8u8_zp_extremes_m64_k512_n128", "provenance": { "notes": "8-bit integer matrix products with scalar zero points on both operands, given as rank-0 or one-element tensors. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 512], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "b": { "dtype": "uint8", "shape": [512, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } } }, { "name": "tiled_matrix_u8s8_scalar_zps_m96_k320_n160", "provenance": { "notes": "8-bit integer matrix products with scalar zero points on both operands, given as rank-0 or one-element tensors. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [96, 320], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "int8", "shape": [320, 160], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [200] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-77] } } }, "outputs": { "y": { "dtype": "int32", "shape": [96, 160], "tolerance": 0 } } }, { "name": "tiled_matrix_s8u8_scalar_zps_m64_k192_n208", "provenance": { "notes": "8-bit integer matrix products with scalar zero points on both operands, given as rank-0 or one-element tensors. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 192], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } }, "b": { "dtype": "uint8", "shape": [192, 208], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-128] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 208], "tolerance": 0 } } }, { "name": "tiled_matrix_u8s8_percol_b_no_azp_m128_k256_n256", "provenance": { "notes": "uint8 by int8 product with M=128, K=256, N=256, no A zero point and a per-column B zero point cycling 19 values between -128 and 127. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [128, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "b": { "dtype": "int8", "shape": [256, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } }, "b_zero_point": { "dtype": "int8", "shape": [256], "data": { "kind": "cycle", "values": [-128, 127, 0, 5, -3, 77, -90, 11, 64, -64, 1, 99, -17, 42, -101, 23, 9, -55, 120] } } }, "outputs": { "y": { "dtype": "int32", "shape": [128, 256], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_a_zp_only_m80_k128_n96", "provenance": { "notes": "int8 by int8 product with M=80, K=128, N=96 and only an A zero point (127). Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [80, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b": { "dtype": "int8", "shape": [128, 96], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } }, "a_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [80, 96], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_b_scalar_only_m64_k64_n80", "provenance": { "notes": "int8 by int8 product with M=64, K=64, N=80 and only a B zero point (-128). Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 64], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } }, "b": { "dtype": "int8", "shape": [64, 80], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-128] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 80], "tolerance": 0 } } }, { "name": "tiled_matrix_u8u8_no_zp_m64_k128_n64", "provenance": { "notes": "uint8 by uint8 product with M=64, K=128, N=64 and no zero points; bytes above 127 must be read as unsigned. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "uint8", "shape": [128, 64], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 64], "tolerance": 0 } } }, { "name": "tiled_matrix_u8s8_no_zp_m48_k96_n112", "provenance": { "notes": "uint8 by int8 product with M=48, K=96, N=112 and no zero points; A bytes above 127 must be read as unsigned. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [48, 96], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "b": { "dtype": "int8", "shape": [96, 112], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [48, 112], "tolerance": 0 } } }, { "name": "tiled_matrix_s8u8_percol_b_a_zp_m72_k160_n96", "provenance": { "notes": "int8 by uint8 product with M=72, K=160, N=96, A zero point -3 and a per-column B zero point cycling 11 values between 0 and 255. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [72, 160], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b": { "dtype": "uint8", "shape": [160, 96], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-3] } }, "b_zero_point": { "dtype": "uint8", "shape": [96], "data": { "kind": "cycle", "values": [0, 255, 128, 1, 254, 77, 13, 200, 99, 127, 31] } } }, "outputs": { "y": { "dtype": "int32", "shape": [72, 96], "tolerance": 0 } } }, { "name": "tiled_matrix_u8u8_tails_m200_k80_n144_a_zp_percol_b", "provenance": { "notes": "uint8 by uint8 product with M=200, K=80, N=144 (none a multiple of 64), A zero point 77 and a per-column B zero point cycling 11 values between 0 and 255. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [200, 80], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "uint8", "shape": [80, 144], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [77] } }, "b_zero_point": { "dtype": "uint8", "shape": [144], "data": { "kind": "cycle", "values": [0, 255, 13, 128, 201, 7, 99, 254, 1, 66, 180] } } }, "outputs": { "y": { "dtype": "int32", "shape": [200, 144], "tolerance": 0 } } }, { "name": "tiled_matrix_u8s8_tails_m200_k80_n144_percol_no_azp", "provenance": { "notes": "uint8 by int8 product with M=200, K=80, N=144 (none a multiple of 64), no A zero point and a per-column B zero point cycling 13 values between -128 and 127. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [200, 80], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "b": { "dtype": "int8", "shape": [80, 144], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b_zero_point": { "dtype": "int8", "shape": [144], "data": { "kind": "cycle", "values": [-128, 127, 0, -1, 33, -66, 12, 101, -90, 7, 55, -13, 88] } } }, "outputs": { "y": { "dtype": "int32", "shape": [200, 144], "tolerance": 0 } } }, { "name": "tiled_matrix_u8s8_tails_m37_k48_n16_scalar_zps", "provenance": { "notes": "uint8 by int8 product with M=37, K=48, N=16 and scalar zero points at the extremes (A 255, B 127). Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [37, 48], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "int8", "shape": [48, 16], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [255] } }, "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [127] } } }, "outputs": { "y": { "dtype": "int32", "shape": [37, 16], "tolerance": 0 } } }, { "name": "tiled_matrix_u8u8_long_k_m64_k4096_n64_maxmag", "provenance": { "notes": "uint8 by uint8 product with M=64, K=4096, N=64, A zero point 0 and B zero point 255; operands near 0 and 255 give int32 outputs near -184 million. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "uint8", "shape": [64, 4096], "data": { "kind": "cycle", "values": [255, 255, 0, 255, 255, 255, 254, 255, 1, 255, 255] } }, "b": { "dtype": "uint8", "shape": [4096, 64], "data": { "kind": "cycle", "values": [0, 0, 255, 0, 0, 1, 0, 0, 0, 254, 0, 0, 0] } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [0] } }, "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 64], "tolerance": 0 } } }, { "name": "tiled_matrix_s8u8_long_k_m32_k8192_n32_maxmag", "provenance": { "notes": "int8 by uint8 product with M=32, K=8192, N=32, A zero point 127 and B zero point 255; operands near the byte extremes shift to values up to 255 in magnitude, giving int32 outputs of about 395 million. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [32, 8192], "data": { "kind": "cycle", "values": [-128, -128, 127, -128, -128, -128, -127, -128, -128, 127, -128, -128, -128, -128, -126, -128, -128] } }, "b": { "dtype": "uint8", "shape": [8192, 32], "data": { "kind": "cycle", "values": [0, 0, 0, 255, 0, 0, 1, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 255] } }, "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [127] } }, "b_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [255] } } }, "outputs": { "y": { "dtype": "int32", "shape": [32, 32], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_aligned_m128_k128_n128", "provenance": { "notes": "int8 by int8 product with M=K=N=128 and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [128, 128], "data": { "kind": "cycle", "values": [-128, 127, 0, -1, 56, -77, 3, 100, -100, 42, -5, 19, -64] } }, "b": { "dtype": "int8", "shape": [128, 128], "data": { "kind": "cycle", "values": [7, -11, 63, -64, 126, -127, 4, 91, -37, 18, -2, 55, -83, 32, 1, -99, -128] } } }, "outputs": { "y": { "dtype": "int32", "shape": [128, 128], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_tails_m200_k80_n144", "provenance": { "notes": "int8 by int8 product with M=200, K=80, N=144 (none a multiple of 64) and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [200, 80], "data": { "kind": "cycle", "values": [5, -3, 127, -128, 9, 0, -71, 33, 18, -6, 101] } }, "b": { "dtype": "int8", "shape": [80, 144], "data": { "kind": "cycle", "values": [-9, 14, 2, -128, 127, 66, -45, 8, -1, 23, 90, -17, 31] } } }, "outputs": { "y": { "dtype": "int32", "shape": [200, 144], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_long_k_m64_k1024_n128_maxmag", "provenance": { "notes": "int8 by int8 product with M=64, K=1024, N=128 and no zero points; operands sit near -128 and 127, so every int32 output is a large positive sum (about 0.94 to 1.17 million). Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [64, 1024], "data": { "kind": "cycle", "values": [-128, -128, 127, -127, -128, 126, -128, 125, -128, 127, -126, -128, 127, -128, 124, -128, 127, -125, -128] } }, "b": { "dtype": "int8", "shape": [1024, 128], "data": { "kind": "cycle", "values": [-128, 127, -128, -127, 126, -128, 127, -128, -128, 125, -124, 127, -128] } } }, "outputs": { "y": { "dtype": "int32", "shape": [64, 128], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_multi_tile_m256_k192_n256", "provenance": { "notes": "int8 by int8 product with M=256, K=192, N=256 and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "inputs": { "a": { "dtype": "int8", "shape": [256, 192], "data": { "kind": "cycle", "values": [12, -7, 99, -128, 3, 77, -54, 0, 21, -100, 127, 6, -33, 45, -2, 88, -19, 61, -90, 14, 5, -66, 38] } }, "b": { "dtype": "int8", "shape": [192, 256], "data": { "kind": "cycle", "values": [-4, 81, -128, 27, 9, -63, 127, -15, 50, 2, -97, 36, -8, 73, -41, 19, 110, -29, 64] } } }, "outputs": { "y": { "dtype": "int32", "shape": [256, 256], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_a_cols_tails_m80_k80_n48", "provenance": { "notes": "int8 by int8 product with M=80, K=80, N=48 and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "tunables": { "INTEGER_GEMM_A_K_CONTIGUOUS": 0 }, "inputs": { "a": { "dtype": "int8", "shape": [80, 80], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b": { "dtype": "int8", "shape": [80, 48], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [80, 48], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_b_rows_tails_m72_k96_n80", "provenance": { "notes": "int8 by int8 product with M=72, K=96, N=80 and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "tunables": { "INTEGER_GEMM_B_K_CONTIGUOUS": 0 }, "inputs": { "a": { "dtype": "int8", "shape": [72, 96], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b": { "dtype": "int8", "shape": [96, 80], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [72, 80], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_a_cols_b_rows_wide_tails_m144_k112_n144", "provenance": { "notes": "int8 by int8 product with M=144, K=112, N=144 and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "tunables": { "INTEGER_GEMM_A_K_CONTIGUOUS": 0, "INTEGER_GEMM_B_K_CONTIGUOUS": 0, "INTEGER_GEMM_WIDE_MIN_WORKGROUPS": 1 }, "inputs": { "a": { "dtype": "int8", "shape": [144, 112], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b": { "dtype": "int8", "shape": [112, 144], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [144, 144], "tolerance": 0 } } }, { "name": "tiled_matrix_s8s8_wide_whole_m256_k128_n256", "provenance": { "notes": "int8 by int8 product with M=256, K=128, N=256 and no zero points. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "tunables": { "INTEGER_GEMM_WIDE_MIN_WORKGROUPS": 1 }, "inputs": { "a": { "dtype": "int8", "shape": [256, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle19" } } }, "b": { "dtype": "int8", "shape": [128, 256], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } } }, "outputs": { "y": { "dtype": "int32", "shape": [256, 256], "tolerance": 0 } } }, { "name": "tiled_matrix_u8u8_wide_tails_m200_k80_n144_a_zp_percol_b", "provenance": { "notes": "uint8 by uint8 product with M=200, K=80, N=144 (none a multiple of 64), A zero point 255 and a per-column B zero point cycling 13 values between 0 and 255. Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "tunables": { "INTEGER_GEMM_WIDE_MIN_WORKGROUPS": 1 }, "inputs": { "a": { "dtype": "uint8", "shape": [200, 80], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "uint8", "shape": [80, 144], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle17" } } }, "a_zero_point": { "dtype": "uint8", "shape": [], "data": { "kind": "values", "values": [255] } }, "b_zero_point": { "dtype": "uint8", "shape": [144], "data": { "kind": "cycle", "values": [255, 0, 128, 77, 1, 254, 33, 200, 127, 9, 66, 129, 3] } } }, "outputs": { "y": { "dtype": "int32", "shape": [200, 144], "tolerance": 0 } } }, { "name": "tiled_matrix_u8s8_mid_tile_m128_k192_n128_scalar_zps", "provenance": { "notes": "uint8 by int8 product with M=128, K=192, N=128 and scalar zero points (A 131, B -7). Prime-length input cycles keep a misaligned or misordered byte layout from producing the same sums." }, "tunables": { "INTEGER_GEMM_WIDE_MIN_WORKGROUPS": 4 }, "inputs": { "a": { "dtype": "uint8", "shape": [128, 192], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_u8_cycle13" } } }, "b": { "dtype": "int8", "shape": [192, 128], "data": { "kind": "cycle", "values": { "$ref": "#/fixtureArrays/tiled_matrix_s8_cycle23" } } }, "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [131] } }, "b_zero_point": { "dtype": "int8", "shape": [], "data": { "kind": "values", "values": [-7] } } }, "outputs": { "y": { "dtype": "int32", "shape": [128, 128], "tolerance": 0 } } } ] }
{
"fixtureArrays": {
"dp4a_s8_pattern": [-128, 127, 0, -1, 56, -77, 3, 100, -100, 42, -5, 19, -64, 88, -33, 7, 125, -90],
"dp4a_u8_pattern": [0, 255, 128, 7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5],
"dp4a_u8u8_k64_no_zero_points_input_b": [7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5, 0, 255, 128],
"dp4a_s8s8_k260_both_zero_points_tails_input_b": [-77, 3, 100, -100, 42, -5, 19, -64, 88, -33, 7, 125, -90, -128, 127, 0, -1, 56],
"dp4a_u8u8_k260_both_zero_points_tails_input_b": [64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5, 0, 255, 128, 7, 200, 31, 129],
"dp4a_tail_k130_rank2_u8u8_scalar_zp_exact_input_a": [0, 255, 121, 7, 200, 31, 129, 64, 99, 3, 254, 127, 1, 88, 173, 240, 16, 5],
"dp4a_gemv_no_zero_s8s8_m1_k64_n512_input_b": [2, -1, 3, -2, 1, 4, -3, 2, -5, 6, 0, -4, 3, 1, -2, 5, -1],
"tiled_matrix_u8_cycle13": [0, 255, 1, 254, 128, 127, 33, 200, 77, 9, 171, 64, 250],
"tiled_matrix_u8_cycle17": [255, 3, 0, 129, 250, 66, 126, 1, 199, 88, 254, 17, 140, 31, 255, 0, 93],
"tiled_matrix_s8_cycle19": [-128, 127, 0, -1, 56, -77, 3, 100, -100, 42, -5, 19, -64, 1, -127, 88, -33, 120, 7],
"tiled_matrix_s8_cycle23": [7, -11, 63, -64, 126, -127, 4, 91, -37, 18, -2, 55, -83, 32, 1, -99, -128, 127, 0, -50, 21, 101, -7],
"ort_2d_s8s8_input_b": [5, -3, 7, 8, -6, -8, -3, 6, 7, 9, 9, -5, 8, 7, -6, 7],
"ort_u8s8_per_column_rank2_zero_point_input_b": [0, -8, 2, 3, -11, -13, -8, 1, 2, 4, 4, -10, 3, 2, -11, 2]
},
"cases": [
{
"name": "uint8_uint8_scalar_zero_points",
"inputs": {
"a": {
"dtype": "uint8",
"shape": [2, 3],
"data": { "kind": "values", "values": [130, 129, 128, 127, 126, 125] }
},
"b": {
"dtype": "uint8",
"shape": [3, 2],
"data": { "kind": "values", "values": [127, 128, 129, 130, 131, 132] }
},
"a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
"b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [129] } }
},
"outputs": { "y": { "dtype": "int32", "shape": [2, 2] } }
},
{
"name": "int8_uint8_negative_values",
"inputs": {
"a": { "dtype": "int8", "shape": [2, 2], "data": { "kind": "values", "values": [-3, -2, 1, 4] } },
"b": { "dtype": "uint8", "shape": [2, 3], "data": { "kind": "values", "values": [10, 20, 30, 40, 50, 60] } },
"a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [30] } }
},
"outputs": { "y": { "dtype": "int32", "shape": [2, 3] } }
},
{
"name": "ort_2d_s8s8",
"inputs": {
"a": { "dtype": "int8", "shape": [2, 4], "data": { "kind": "values", "values": [-3, 7, 5, -6, 4, -5, 8, 7] } },
"b": {
"dtype": "int8",
"shape": [4, 4],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_2d_s8s8_input_b" } }
},
"a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } },
"b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }
},
"outputs": { "y": { "dtype": "int32", "shape": [2, 4], "tolerance": 0 } },
"provenance": {
"source": "onnxruntime/test/providers/cpu/math/matmul_integer_test.cc",
"test": "MatmulIntegerOpTest.MatMulInteger_int8_t"
}
},
{
"name": "uint8_zero_k_dimension_outputs_zero",
"inputs": {
"a": { "dtype": "uint8", "shape": [2, 0], "data": { "kind": "values", "values": [] } },
"b": { "dtype": "uint8", "shape": [0, 3], "data": { "kind": "values", "values": [] } },
"a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [17] } },
"b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [23] } }
},
"outputs": { "y": { "dtype": "int32", "shape": [2, 3], "tolerance": 0 } }
},
{
"name": "int8_nonzero_zero_points_large_accumulator",
"inputs": {
"a": {
"dtype": "int8",
"shape": [2, 4],
"data": { "kind": "values", "values": [127, -128, 64, -64, -1, 2, -3, 4] }
},
"b": {
"dtype": "int8",
"shape": [4, 2],
"data": { "kind": "values", "values": [-128, 127, 64, -64, 32, -32, -16, 16] }
},
"a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [-3] } },
"b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [5] } }
},
"outputs": { "y": { "dtype": "int32", "shape": [2, 2], "tolerance": 0 } }
},
{
"name": "ort_empty_m_dimension",
"inputs": {
"a": { "dtype": "uint8", "shape": [0, 3], "data": { "kind": "values", "values": [] } },
"b": { "dtype": "uint8", "shape": [3, 2], "data": { "kind": "values", "values": [1, 4, 2, 5, 3, 6] } },
"a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [12] } },
"b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [0] } }
},
"outputs": { "y": { "dtype": "int32", "shape": [0, 2], "tolerance": 0 } },