Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CPU] enable f16 dst for s8/u8 inputs in fullyconnected node (#31812)

Bo Liu453c8ee337f4
diff --git a/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp b/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp
index e1c2122c7d8..98b1927a6f2 100644
--- a/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp
+++ b/src/plugins/intel_cpu/src/nodes/executors/fullyconnected_implementations.cpp
@@ -86,8 +86,12 @@ static const TypeMapping dnnlFCTypeMapping {
{{_bf16, _f16, _any, _any}, {bypass(), bypass(), use<0>(), use<0>()}},
{{_f16, _bf16, _any, _any}, {bypass(), bypass(), use<0>(), use<0>()}},
// quantization configuration
- // int8 inner_product does not support f16 output and bias
+ // int8 inner_product does not support f16 output or bias (f16 output is only supported on X86_64 platforms)
+#if defined(OPENVINO_ARCH_X86_64)
+ {{_u8 | _i8, _i8, _u8 | _i8 | _i32 | _bf16 | _f32 | _dynamic, _u8 | _i8 | _i32 | _bf16 | _f16 | _f32}, {bypass(), bypass(), bypass(), bypass()}},
+#else
{{_u8 | _i8, _i8, _u8 | _i8 | _i32 | _bf16 | _f32 | _dynamic, _u8 | _i8 | _i32 | _bf16 | _f32}, {bypass(), bypass(), bypass(), bypass()}},
+#endif
{{_u8 | _i8, _i8, _f16, _u8 | _i8 | _i32 | _bf16 | _f32}, {bypass(), bypass(), just<f32>(), bypass()}},
{{_u8 | _i8, _i8, _any, _any}, {bypass(), bypass(), just<f32>(), just<f32>()}},
// compresses int weights (@todo more strict requrements for output precision?)
diff --git a/src/plugins/intel_cpu/thirdparty/onednn b/src/plugins/intel_cpu/thirdparty/onednn
index 3d7a6f1d068..8db5d5ae8b6 160000
--- a/src/plugins/intel_cpu/thirdparty/onednn
+++ b/src/plugins/intel_cpu/thirdparty/onednn
@@ -1 +1 @@
-Subproject commit 3d7a6f1d068d8ae08f189aa4baa93d177bc07507
+Subproject commit 8db5d5ae8b61bc88c3ad2ea849a0e5e8576d130d