From 27e4cca0b3d03ba6dac4bebf947508255846a235 Mon Sep 17 00:00:00 2001 From: yangfei Date: Thu, 18 Oct 2018 18:57:26 +0800 Subject: [PATCH] repair some bug --- src/framework/cl/cl_image.h | 2 +- src/framework/executor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/cl/cl_image.h b/src/framework/cl/cl_image.h index 8fc9f49ffa..70b5aab7cf 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 8421c62573..bc2a46ab35 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 { -- GitLab