From 3bea7d2b1c6ae06224556c3435f7b0d6c0c82c6a Mon Sep 17 00:00:00 2001 From: Kaustubh Arora Date: Sun, 25 Oct 2026 23:14:45 +0530 Subject: [PATCH] dnn: enable the QLinearMatMul dtype variants and blocked asymmetric QuantizeLinear conformance cases The eight test_qlinearmatmul_{2D,3D}_{int8,uint8}_{float16,float32} cases and test_quantizelinear_blocked_asymmetric were on the parser denylist without test data; opencv_extra#1436 (paired with #30289) added the models and with them all nine pass on current 5.x. The old denylist comment calls the QLinearMatMul entries float-output variants, but the suffix is the scale dtype and the outputs are int8/uint8, which the importer and kernels already handle. Remove the nine entries from the denylist and add them to the OpenVINO filter as SKIP, like the other QLinearMatMul/QuantizeLinear cases there. Verified on macOS arm64 against current opencv_extra: all 18 parameterizations (OCV/CPU, OCV/CPU_FP16) pass and the whole Test_ONNX_conformance suite stays green. --- ..._conformance_layer_filter__openvino.inl.hpp | 18 ++++++++++++++++++ ...x_conformance_layer_parser_denylist.inl.hpp | 9 --------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/modules/dnn/test/test_onnx_conformance_layer_filter__openvino.inl.hpp b/modules/dnn/test/test_onnx_conformance_layer_filter__openvino.inl.hpp index 6baaab86a3..3f88bca728 100644 --- a/modules/dnn/test/test_onnx_conformance_layer_filter__openvino.inl.hpp +++ b/modules/dnn/test/test_onnx_conformance_layer_filter__openvino.inl.hpp @@ -2113,14 +2113,32 @@ CASE(test_qlinearconv) SKIP; CASE(test_qlinearmatmul_2D) SKIP; +CASE(test_qlinearmatmul_2D_int8_float16) + SKIP; +CASE(test_qlinearmatmul_2D_int8_float32) + SKIP; +CASE(test_qlinearmatmul_2D_uint8_float16) + SKIP; +CASE(test_qlinearmatmul_2D_uint8_float32) + SKIP; CASE(test_qlinearmatmul_3D) SKIP; +CASE(test_qlinearmatmul_3D_int8_float16) + SKIP; +CASE(test_qlinearmatmul_3D_int8_float32) + SKIP; +CASE(test_qlinearmatmul_3D_uint8_float16) + SKIP; +CASE(test_qlinearmatmul_3D_uint8_float32) + SKIP; CASE(test_quantizelinear) SKIP; CASE(test_quantizelinear_axis) SKIP; CASE(test_quantizelinear_blocked) SKIP; +CASE(test_quantizelinear_blocked_asymmetric) + SKIP; CASE(test_quantizelinear_e4m3fn) SKIP; CASE(test_quantizelinear_e5m2) diff --git a/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp b/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp index 76b4195b17..3ccdd1c4ab 100644 --- a/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp +++ b/modules/dnn/test/test_onnx_conformance_layer_parser_denylist.inl.hpp @@ -117,15 +117,6 @@ "test_optional_has_element_empty_optional_input", "test_optional_has_element_optional_input", "test_optional_has_element_tensor_input", -"test_qlinearmatmul_2D_int8_float16", // Float output QLinearMatMul variants not supported -"test_qlinearmatmul_2D_int8_float32", -"test_qlinearmatmul_2D_uint8_float16", -"test_qlinearmatmul_2D_uint8_float32", -"test_qlinearmatmul_3D_int8_float16", // Float output QLinearMatMul variants not supported -"test_qlinearmatmul_3D_int8_float32", -"test_qlinearmatmul_3D_uint8_float16", -"test_qlinearmatmul_3D_uint8_float32", -"test_quantizelinear_blocked_asymmetric", "test_quantizelinear_blocked_symmetric", "test_quantizelinear_float4e2m1", "test_quantizelinear_int16",