OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU] Fix MatMul type mapping (#32300)
Egor Duplenskiib1b0cb900923
diff --git a/src/plugins/intel_cpu/src/nodes/executors/matmul_implementations.cpp b/src/plugins/intel_cpu/src/nodes/executors/matmul_implementations.cppindex 6eedcc18c5f..cdef285378e 100644--- a/src/plugins/intel_cpu/src/nodes/executors/matmul_implementations.cpp+++ b/src/plugins/intel_cpu/src/nodes/executors/matmul_implementations.cpp@@ -49,19 +49,12 @@ struct Require {// clang-format offstatic const TypeMapping dnnlMatMulTypeMapping {// {src, wei, bia, dst} pt<src, wei, bias, dst>- {{_bf16, _bf16 | _f32, _any, _bf16 | _f32}, {bypass(), bypass(), use<3>(), bypass()}},+ {{_bf16, _bf16, _any, _bf16 | _f32}, {bypass(), bypass(), use<3>(), bypass()}},{{_f16, _f16, _any, _f16 | _f32}, {bypass(), bypass(), use<3>(), bypass()}},- // integer precision outputs are not supported for float precision inputs- {{_f32 | _bf16 | _f16, _any, _any, _i8 | _u8}, {bypass(), bypass(), use<0>(), use<0>()}},- // compresses float weights which do not match input data precision- {{_f32, _half_float, _any, _any}, {bypass(), bypass(), use<0>(), use<0>()}},- {{_bf16, _f16, _any, _any}, {bypass(), bypass(), use<0>(), use<0>()}},- {{_f16, _bf16, _any, _any}, {bypass(), bypass(), use<0>(), use<0>()}},+ {{_f32, _f32, _any, _f32}, {bypass(), bypass(), use<3>(), bypass()}},// quantization configuration{{_u8 | _i8, _i8, _u8|_i8|_i32|_bf16|_f16|_f32|_dynamic, _u8|_i8|_i32|_bf16|_f16|_f32}, {bypass(), bypass(), bypass(), bypass()}},{{_u8 | _i8, _i8, _any, _any}, {bypass(), bypass(), just<f32>(), just<f32>()}},- // compresses int weights- {{_f32 | _bf16 | _f16, _u8 | _i8, _any, _any}, {bypass(), bypass(), use<0>(), use<0>()}},// @todo should we fallback to FPXX instead of _f32?{{_any, _any, _any, _any}, {just<f32>(), just<f32>(), just<f32>(), just<f32>()}},};