• rockzhan's avatar
    Merge pull request #11649 from rockzhan:dnn_dw_prelu · 1187a7fa
    rockzhan authored
    dnn: Fix output mismatch when forward dnn model contain [depthwise conv(group=1) + bn + prelu]  (#11649)
    
    * this can make sure [depthwise conv(group=1) + bn + prelu] output not shift
    
    * add TEST to show the output mismatch in [DWconv+Prelu]
    
    * fix typo
    
    * change loading image to init cvMat directly
    
    * build runtime model, without loading external model
    
    * remove whitespace
    
    * change way to create a cvmat
    
    * add bias_term, add target output
    
    * fix [dwconv + prelu] value mismatch when no optimizations
    
    * fix Test error when change output channels
    
    * add parametric test
    
    * change num_output to group value
    
    * change conv code and change test back
    1187a7fa
layers_common.simd.hpp 19.5 KB