diff --git a/dnn/src/fallback/conv_bias/im2col/algos.cpp b/dnn/src/fallback/conv_bias/im2col/algos.cpp index 30cde32f204ae2c9ba98c463eec854b7f2c6a9c4..7bb81af5a5fdcc21e9eb175fd203f511b5cafa6a 100644 --- a/dnn/src/fallback/conv_bias/im2col/algos.cpp +++ b/dnn/src/fallback/conv_bias/im2col/algos.cpp @@ -377,6 +377,15 @@ bool ConvBiasImpl::AlgoIm2col::usable( } #endif + //! 8x8x32 and 8x8x8 and NO_PACK is not supported + if (matmul_desc.packmode == Pack_Mode::NO_PACK && + param.src_type.enumv() == DTypeEnum::QuantizedS8 && + param.bias_type.enumv() == DTypeEnum::QuantizedS32 && + (param.dst_type.enumv() == DTypeEnum::QuantizedS8 || + param.dst_type.enumv() == DTypeEnum::QuantizedS32)) { + return false; + } + //! make sure 8x8x16 and 8x8x32 biasmode is nobias and nonlineMode is //! identity otherwise return false mean that 8x8x32 and 8x8x16 not //! support PostProcess diff --git a/dnn/test/x86/conv_bias.cpp b/dnn/test/x86/conv_bias.cpp index 61bf264758e791cbada326839834810a20426851..333ac6e8fddf6fc82b70d7f55a9982196b04a749 100644 --- a/dnn/test/x86/conv_bias.cpp +++ b/dnn/test/x86/conv_bias.cpp @@ -963,7 +963,7 @@ TEST_F(X86_MULTI_THREADS, CONV_BIAS_IM2COLMATMUL_INT8X8X32_FILTER_PREPROCESS) { #if MEGDNN_X86_WITH_MKL_DNN if (megdnn::x86::is_supported(x86::SIMDType::VNNI)) { - cb("IM2COLMATMUL:X86_INT8X8X32_MKLDNN"); + cb("IM2COLMATMUL"); } #endif #if MEGDNN_X86_WITH_VNNI