Paddle-Lite [OpenCL] Reshape Crash for yolov5

lkaoscv7  于 2022-10-27  发布在  其他
关注(0)|答案(1)|浏览(235)
  • 版本、环境信息:

   1)Paddle Lite 版本:develop f8656fd
   2)Host 环境:Ubuntu20.04 GCC 9.4.0

  • 模型信息

   1)模型名称 yolov5
2)模型链接 链接: https://pan.baidu.com/s/1UWZfKlq-0HBKrWPWVJc4Mw?pwd=7bck 提取码: 7bck

  • 问题描述:
I1026 10:36:08.541890 482388 cl_image_converter.cc:309]  init done
I1026 10:36:08.542464 482388 conv_image_compute.cc:561] kernel_func_names_[0]:conv2d_1x1_h1w4c1 kernel_func_paths_[0]:image/conv2d_1x1_default_kernel.cl
I1026 10:36:08.542472 482388 conv_image_compute.cc:567] relu_fused_:0 sigmoid_fused_:0 conv_param_->activation_param.active_type:0 conv_param_->activation_param.has_active:0
I1026 10:36:08.542485 482388 cl_context.cc:38]  --- to get program image/conv2d_1x1_default_kernel.cl --- 
I1026 10:36:08.542490 482388 cl_runtime.cc:156] precision_: CL_PRECISION_FP32
I1026 10:36:08.542495 482388 cl_runtime.cc:157] OpenCL build_option:  -DBIASE_CH -cl-fast-relaxed-math -cl-mad-enable -DCL_DTYPE_float -DCL_DTYPE_FLOAT_FORCE 
I1026 10:36:08.542501 482388 cl_runtime.cc:184]  --- program -> image/conv2d_1x1_default_kernel.cl -DBIASE_CH -cl-fast-relaxed-math -cl-mad-enable -DCL_DTYPE_float -DCL_DTYPE_FLOAT_FORCE  has been built in cache --- 
I1026 10:36:08.542506 482388 cl_context.cc:42]  --- end get program --- 
I1026 10:36:08.542510 482388 cl_context.cc:43]  --- to create kernel: conv2d_1x1_h1w4c1 --- 
I1026 10:36:08.542518 482388 cl_context.cc:49]  --- end create kernel --- 
I1026 10:36:08.542529 482388 cl_context.cc:59]  --- kernel count: 222 --- 
I1026 10:36:08.542686 482388 reshape_image_compute.cc:44] kernel_func_name_:reshape
I1026 10:36:08.542698 482388 cl_context.cc:38]  --- to get program image/reshape_kernel.cl --- 
I1026 10:36:08.542706 482388 cl_runtime.cc:156] precision_: CL_PRECISION_FP32
I1026 10:36:08.542711 482388 cl_runtime.cc:157] OpenCL build_option:  -cl-fast-relaxed-math -cl-mad-enable -DCL_DTYPE_float -DCL_DTYPE_FLOAT_FORCE 
I1026 10:36:08.542728 482388 cl_runtime.cc:341] OpenCL kernel file name: image/reshape_kernel.cl
I1026 10:36:08.542734 482388 cl_runtime.cc:342] Program source size: 8141
I1026 10:36:08.542739 482388 cl_runtime.cc:323]  --- begin build program from source -> image/reshape_kernel.cl -cl-fast-relaxed-math -cl-mad-enable -DCL_DTYPE_float -DCL_DTYPE_FLOAT_FORCE  --- 
I1026 10:36:08.543956 482388 cl_context.cc:42]  --- end get program --- 
I1026 10:36:08.543967 482388 cl_context.cc:43]  --- to create kernel: reshape --- 
I1026 10:36:08.543972 482388 cl_context.cc:49]  --- end create kernel --- 
I1026 10:36:08.543978 482388 reshape_image_compute.cc:75] out_dims= {1,3,85,80,80}
F1026 10:36:08.543984 482388 image_helper.h:72] Unsupport DefaultGlobalWorkSize with tensor_dim.size():5, image_shape.size():2

***Check failure stack trace:***

Reshape 不能处理dims5, 能不能在dims[0] = 1的时候 当dims4 处理

相关问题