biasmode or nonlineMode do not support

mac m1电脑,使用megengine lite执行模型在启用 enable_f16_io_comp ,执行forward时报错如下:

[28 15:34:03 worker_thread_impl@thread_impl_1.h:379][ERR] caught exception in AsyncQueueSC; what(): biasmode or nonlineMode do not support

backtrace:
2 lite_test 0x0000000102360684 _ZN3mgb13MegBrainErrorC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 120
3 lite_test 0x000000010267aea8 _ZN3mgb11MegDNNErrorCI2NS_13MegBrainErrorEERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 56
4 lite_test 0x000000010267ae28 _ZN3mgb11MegDNNErrorCI1NS_13MegBrainErrorEERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 40
5 lite_test 0x000000010267aca0 _ZN12_GLOBAL__N_118MegDNNErrorHandler18do_on_megdnn_errorERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 124
6 lite_test 0x00000001035abbf0 _ZN6megdnn12ErrorHandler15on_megdnn_errorEPKc + 0
7 lite_test 0x00000001035abc20 _ZN6megdnn12ErrorHandler15on_megdnn_errorEPKc + 48
8 lite_test 0x0000000107e15d40 _ZN12_GLOBAL__N_111PostProcessIN10half_float4halfES2_LN6megdnn15PostprocessModeE1EE3runEPvS6_S6_NS3_15ConvBiasForward8BiasModeENS3_5param10ConvBiasV011NonlineModeENS3_5DTypeESC_mmmmm + 132
9 lite_test 0x0000000107e13de8 _ZN6megdnn12_GLOBAL__N_114do_postprocessIN10half_float4halfES3_S3_S3_LNS_15PostprocessModeE1EEEvRKNS_8fallback12ConvBiasImpl12NCBKernParamERKNS_13StrategyParamERKNS_15WorkspaceBundleEmm + 420
10 lite_test 0x0000000107e13c38 _ZN6megdnn8StrategyIN10half_float4halfES2_S2_S2_S2_LNS_15PostprocessModeE1ELNS_8fallback13MatrixMulImpl8AlgoBase8PackModeE1ELNS_5param11Convolution6FormatE0EE16exec_postprocessERKNS4_12ConvBiasImpl12NCBKernParamERKNS_13StrategyParamERKNS_15WorkspaceBundleE + 52
11 lite_test 0x0000000107ddacc4 _ZN6megdnn8fallback6im2col12_GLOBAL__N_15kernsERKNS_15WorkspaceBundleES3_RKNS0_12ConvBiasImpl12NCBKernParamENS0_13MatrixMulImpl13KernSizeParamEPKNSA_8AlgoBaseERKNSC_17MatmulDescriptionENS_13StrategyParamENS6_12NCBKernIndexEmPNS_12StrategyBaseE + 812

libc++abi: terminating with uncaught exception of type mgb::MegDNNError: biasmode or nonlineMode do not support

backtrace:
2 lite_test 0x0000000102360684 _ZN3mgb13MegBrainErrorC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 120
3 lite_test 0x000000010267aea8 _ZN3mgb11MegDNNErrorCI2NS_13MegBrainErrorEERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 56
4 lite_test 0x000000010267ae28 _ZN3mgb11MegDNNErrorCI1NS_13MegBrainErrorEERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 40
5 lite_test 0x000000010267aca0 _ZN12_GLOBAL__N_118MegDNNErrorHandler18do_on_megdnn_errorERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 124
6 lite_test 0x00000001035abbf0 _ZN6megdnn12ErrorHandler15on_megdnn_errorEPKc + 0
7 lite_test 0x00000001035abc20 _ZN6megdnn12ErrorHandler15on_megdnn_errorEPKc + 48
8 lite_test 0x0000000107e15d40 _ZN12_GLOBAL__N_111PostProcessIN10half_float4halfES2_LN6megdnn15PostprocessModeE1EE3runEPvS6_S6_NS3_15ConvBiasForward8BiasModeENS3_5param10ConvBiasV011NonlineModeENS3_5DTypeESC_mmmmm + 132
9 lite_test 0x0000000107e13de8 _ZN6megdnn12_GLOBAL__N_114do_postprocessIN10half_float4halfES3_S3_S3_LNS_15PostprocessModeE1EEEvRKNS_8fallback12ConvBiasImpl12NCBKernParamERKNS_13StrategyParamERKNS_15WorkspaceBundleEmm + 420
10 lite_test 0x0000000107e13c38 _ZN6megdnn8StrategyIN10half_float4halfES2_S2_S2_S2_LNS_15PostprocessModeE1ELNS_8fallback13MatrixMulImpl8AlgoBase8PackModeE1ELNS_5param11Convolution6FormatE0EE16exec_postprocessERKNS4_12ConvBiasImpl12NCBKernParamERKNS_13StrategyParamERKNS_15WorkspaceBundleE + 52
11 lite_test 0x0000000107ddacc4 _ZN6megdnn8fallback6im2col12_GLOBAL__N_15kernsERKNS_15WorkspaceBundleES3_RKNS0_12ConvBiasImpl12NCBKernParamENS0_13MatrixMulImpl13KernSizeParamEPKNSA_8AlgoBaseERKNSC_17MatmulDescriptionENS_13StrategyParamENS6_12NCBKernIndexEmPNS_12StrategyBaseE + 812

Signal: SIGABRT (signal SIGABRT)

  • 应该是某一种op fp16 没有补全, 需要上传一下你测试的模型
  • 可以先用 f32 的模式来跑

应该是 https://github.com/MegEngine/MegEngine/blob/master/dnn/src/arm_common/conv_bias/postprocess_helper.h#L143 触发了这里的throw,这里的意思是不需要postprocess的算子,这里还有bias需要处理。感觉是触发了某种bug,如果你提供模型或者复现的话,能更好的帮助我们定位问题,感谢!