ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

bug: default elemsize of elemsize is 0 in DeconvolutionDepthWise_arm

Open xinyu391 opened this issue 8 years ago • 2 comments

在 commit (sub-mat shall be allocator-aware) 时 在Mat构造时加入了2个参数,top_blob.elemsize, top_blob.allocator: 2018-08-23 14-54-59 但这里top_blob.elemsize为0,因为 外层构造时, forward Mat的空构造函数把elemsize设为0 mat 在 forwar函数内top_blob未执行crate,使得top_blob_bordered_g 的elementsize也为0,导致后面的计算失败。 arm

@nihui

xinyu391 avatar Aug 23 '18 07:08 xinyu391

可以把这两处的 top_blob.elemsize 改成 elemsize

xinyu391 avatar Aug 23 '18 07:08 xinyu391

新代码运行ok了

xinyu391 avatar Aug 23 '18 07:08 xinyu391