diff --git a/src/framework/cl/cl_image.h b/src/framework/cl/cl_image.h index 2301f06da959f5b83e858f0c7a0af921ee630ff6..26c0f0a42483fcfeacd162b697cb44dfae6e89c3 100644 --- a/src/framework/cl/cl_image.h +++ b/src/framework/cl/cl_image.h @@ -38,7 +38,7 @@ class CLImage { size_t W = tensorDims_[3]; size_t width = W * ((C + 3) / 4); size_t height = H * N; - std::unique_ptr imageData(); + std::unique_ptr imageData{}; if (tensorInput != nullptr) { imageData.reset(new half_t[width * height * 4]); float *p = tensorInput; @@ -76,7 +76,7 @@ class CLImage { } void Init(cl_context context, DDim ddim) { - Init(cl_context context, nullptr, DDim ddim); + Init(context, nullptr, ddim); } inline CLImage &Resize(const DDim &dims) {