diff --git a/src/framework/cl/cl_image.h b/src/framework/cl/cl_image.h index 8fc9f49ffa3deef64ee9fdba956096fffc2dc05c..70b5aab7cf613953ae3cb4c530cc3e2e6c907f6b 100644 --- a/src/framework/cl/cl_image.h +++ b/src/framework/cl/cl_image.h @@ -244,7 +244,7 @@ class CLImage { image_width_ = width; image_height_ = height; image_dims_ = make_ddim({image_width_, image_height_}); - c_block_ = W / width; + c_block_ = width / W; DLOG << " tensor dim " << tensor_dims_; DLOG << " 赋值时: image width: " << image_width_; diff --git a/src/framework/executor.cpp b/src/framework/executor.cpp index 8421c6257320cb2664da91209dc8708255109dfe..bc2a46ab35570e9f60f663830dddb3836e247592 100644 --- a/src/framework/executor.cpp +++ b/src/framework/executor.cpp @@ -37,7 +37,7 @@ limitations under the License. */ #include "framework/cl/cl_image.h" #endif -int debug_to = 2; +int debug_to = 34; namespace paddle_mobile { namespace framework {